Guest User

Untitled

a guest
Nov 18th, 2018
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. distance = 14
  2. while true do
  3. os.queueEvent("randomEvent")
  4. os.pullEvent()
  5. i = 1
  6. if rs.getOutput("left") == true then
  7. os.shutdown()
  8. end
  9. shell.run("turn","right","2")
  10. shell.run("go","forward",distance)
  11. turtle.digDown()
  12. shell.run("go","down","1")
  13. shell.run("excavate","3")
  14. shell.run("turn","right","2")
  15. shell.run("go","up","1")
  16. shell.run("go","forward",distance)
  17. slot = 1
  18. while slot < 10 do
  19. turtle.select(slot)
  20. turtle.drop()
  21. slot = slot + 1
  22. end
  23. distance = distance + 3
  24. end
Add Comment
Please, Sign In to add comment