zeshan

Untitled

Dec 23rd, 2013
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. local saplings = 1
  2. turtle.select(saplings)
  3. while turtle.getItemCount(saplings) > 0 do
  4. for i = 1, 8 do
  5. turtle.turnRight()
  6. if not turtle.compare() then
  7. turtle.dig()
  8. turtle.forward()
  9. while turtle.detectUp() do
  10. turtle.digUp()
  11. turtle.up()
  12. end
  13. while not turtle.detectDown() do
  14. turtle.down()
  15. end
  16. turtle.back()
  17. turtle.place()
  18. end
  19. turtle.turnLeft()
  20. turtle.forward()
  21. end
  22.  
  23. turtle.turnRight()
  24. turtle.forward()
  25. turtle.forward()
  26. turtle.turnRight()
  27. turtle.forward()
  28. os.sleep(30)
  29. end
Advertisement
Add Comment
Please, Sign In to add comment