Advertisement
Litschie

Untitled

Jul 29th, 2016
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. local function depletedFuel()
  2. return redstone.getInput("back")
  3. end
  4.  
  5. local x
  6. local reactor = peripheral.wrap("top")
  7. local chest = "south"
  8. local slot = { 9, 10, 13, 14, 17, 18,
  9. 21, 22, 25, 26, 29, 30,
  10. 33, 34, 37, 38}
  11.  
  12. while true do
  13. if depletedFuel() then
  14. --sleep(10)
  15. for x=1, #slot do
  16. turtle.select(16)
  17. reactor.pushItemIntoSlot(chest, slot[x])
  18. print(slot[x])
  19. end
  20.  
  21. else
  22. print("Idling")
  23. end
  24. sleep(1)
  25. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement