Advertisement
herobrinethree

canecutter

Feb 15th, 2021 (edited)
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. empty = function()
  2. if turtle.getItemCount(16) > 0 then
  3. for i = 1, 16, 1
  4. do
  5. turtle.select(i)
  6. turtle.dropDown(64)
  7. end
  8. turtle.select(1)
  9. end
  10. end
  11. chop = function()
  12. repeat
  13. if turtle.detect() == true then
  14. empty()
  15. turtle.dig()
  16. end
  17. turtle.turnLeft()
  18. until false
  19. end
  20. chop()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement