Advertisement
GDragonArcher

Builder Auto Resource

Jun 7th, 2023
838
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.59 KB | None | 0 0
  1. --this will check what a builder needs and take it from the storage system and put it into a chest. From there a modular router connected to the racks in the builder's hut will then put the items in the racks for the builder to use. This automates the building process
  2.  
  3. local integrator = peripheral.find("colonyIntegrator")
  4. local bridge = peripheral.find("rsBridge")
  5.  
  6. location = {x,y,z} --this is the x,y,z coordinates of the builders hut block
  7.  
  8. items = getBuilderResources(location)   --should give table with item name as string and quantity number
  9.  
  10. exportItem(item: table, direction: string)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement