Advertisement
cpmct32

Mining turtle tree farm

May 10th, 2019
1,823
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1.  
  2.  
  3.  
  4. function plant()
  5. turtle.forward()
  6. turtle.turnRight()
  7. turtle.place()
  8.  
  9. turtle.turnLeft()
  10. turtle.forward()
  11. turtle.turnRight()
  12. turtle.place()
  13.  
  14. turtle.turnLeft()
  15.  
  16. turtle.back()
  17. turtle.place()
  18.  
  19. turtle.back()
  20. turtle.place()
  21. end
  22.  
  23. function chop()
  24. turtle.dig()
  25. turtle.forward()
  26.  
  27. for i=1,100 do
  28. turtle.dig()
  29. turtle.digUp()
  30. turtle.up()
  31. end
  32.  
  33. turtle.forward()
  34. turtle.turnRight()
  35. turtle.forward()
  36. turtle.turnRight()
  37.  
  38. for i=1,100 do
  39. turtle.digDown()
  40. turtle.down()
  41. turtle.dig()
  42. end
  43.  
  44. turtle.forward()
  45. turtle.forward()
  46. turtle.turnRight()
  47. turtle.forward()
  48. turtle.turnRight()
  49.  
  50. plant()
  51. end
  52.  
  53. function grow()
  54. repeat
  55. turtle.place()
  56. until(turtle.inspect().name == "minecraft:log")
  57. chop()
  58. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement