Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- interface = peripheral.wrap("back")
- chest = peripheral.wrap("left")
- pulverizer = peripheral.wrap("right")
- items = interface.getAvailableItems()
- oreid = {}
- for k,v in pairs(items) do
- if v.fingerprint.id == "BigReactors:YelloriteOre" then
- oreid = v.fingerprint
- break
- end
- end
- while true do
- stack = chest.getStackInSlot(1)
- if stack.qty <= 32 then
- print("refueling...")
- interface.exportItem(oreid,"north",16)
- print("waiting for refueling to finish...")
- while not pulverizer.getStackInSlot(1) do
- os.sleep(1)
- end
- while pulverizer.getStackInSlot(1) do
- os.sleep(1)
- end
- print("refueling finished!")
- end
- os.sleep(1)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement