Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local function depletedFuel()
- return redstone.getInput("back")
- end
- local x
- local reactor = peripheral.wrap("top")
- local chest = "south"
- local slot = { 9, 10, 13, 14, 17, 18,
- 21, 22, 25, 26, 29, 30,
- 33, 34, 37, 38}
- while true do
- if depletedFuel() then
- --sleep(10)
- for x=1, #slot do
- turtle.select(16)
- reactor.pushItemIntoSlot(chest, slot[x])
- print(slot[x])
- end
- else
- print("Idling")
- end
- sleep(1)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement