SummitSummit

Chop

Jan 25th, 2013
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local count = 0
  2. function Chop()
  3. while turtle.detectUp() or turtle.detect() do
  4. turtle.digUp()
  5. turtle.dig()
  6. turtle.up()
  7. count = count + 1
  8. end
  9. turtle.turnRight()
  10. turtle.dig()
  11. turtle.forward()
  12. turtle.turnLeft()
  13. turtle.dig()
  14. while count > 0 do
  15. turtle.digDown()
  16. turtle.down()
  17. turtle.dig()
  18. count = count - 1
  19. end
  20. end
  21. turtle.dig()
  22. turtle.forward()
  23. Chop()
  24. print("Job's Done!")
Advertisement
Add Comment
Please, Sign In to add comment