Advertisement
SolarFlare123

Harvest.lua

Mar 1st, 2024 (edited)
39
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.12 KB | None | 0 0
  1. function checkCrop()
  2. local a,data=turtle.inspectDown()
  3. size=data.state.age
  4. if tonumber(size)==7 then
  5. turtle.digDown()
  6. turtle.placeDown()
  7. end
  8. end
  9.  
  10. while true do
  11. turtle.forward()
  12. checkCrop()
  13. turtle.forward()
  14. checkCrop()
  15. turtle.forward()
  16. checkCrop()
  17. turtle.forward()
  18. checkCrop()
  19. turtle.turnLeft()
  20. turtle.forward()
  21. checkCrop()
  22. turtle.turnLeft()
  23. turtle.forward()
  24. checkCrop()
  25. turtle.forward()
  26. checkCrop()
  27. turtle.forward()
  28. checkCrop()
  29. turtle.turnRight()
  30. turtle.forward()
  31. checkCrop()
  32. turtle.turnRight()
  33. turtle.forward()
  34. checkCrop()
  35. turtle.forward()
  36. checkCrop()
  37. turtle.forward()
  38. checkCrop()
  39. turtle.turnLeft()
  40. turtle.forward()
  41. checkCrop()
  42. turtle.turnLeft()
  43. turtle.forward()
  44. checkCrop()
  45. turtle.forward()
  46. checkCrop()
  47. turtle.forward()
  48. checkCrop()
  49. turtle.turnLeft()
  50. turtle.forward()
  51. turtle.forward()
  52. turtle.forward()
  53. turtle.turnLeft()
  54. turtle.back()
  55. turtle.dropDown()
  56. turtle.dropDown()
  57. sleep(300)
  58. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement