nomnuggetnom

Untitled

Jun 13th, 2013
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.77 KB | None | 0 0
  1. while true do
  2.  
  3. -- Check if a tree has grown
  4. turtle.select(2)
  5. if turtle.compare("true")
  6. turtle.dig()
  7. turtle.forward()
  8.  
  9. -- Chop the tree
  10. while turtle.digUp() do
  11. turtle.up()
  12. end
  13.  
  14. -- Done chopping, return to the bottom
  15. while not turtle.detectDown() do
  16. turtle.down()
  17. end
  18.  
  19. -- Turn, move onto the chest, then deposit the items
  20. turtle.turnRight()
  21. turtle.turnRight()
  22. turtle.forward()
  23. for i = 3,16 do
  24. turtle.select(i)
  25. dropDown()
  26. end
  27.  
  28. -- Place a sapling
  29. turtle.turnRight()
  30. turtle.turnRight()
  31. turtle.select(1)
  32. turtle.place()
  33. else
  34. sleep(1)
  35. end
  36. end
Advertisement
Add Comment
Please, Sign In to add comment