Advertisement
FakoTheGreat

Turtle ME Reset Switch

May 31st, 2014
228
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. local chest = peripheral.wrap("right")
  2. local stacks
  3.  
  4. local holdSpot = 26
  5. local resetSpot = 27
  6.  
  7. while true do
  8. stacks = chest.getAllStacks()
  9. if not stacks[resetSpot] == nil and stacks[holdSpot] == nil then
  10. chest.pushItem("north", resetSpot, 64, 16)
  11. turtle.digDown()
  12. chest.pullItem("south", 16, 64, holdSpot)
  13. turtle.placeDown()
  14. end
  15. os.sleep(1)
  16. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement