Advertisement
guerre10

Farming

Aug 8th, 2022
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. orientation= true
  2. slot=1
  3. turtle.select(1)
  4. for i=5, do
  5. for i=1, 14 do
  6. -- if theres stuff in front, dig it out, otherwise move
  7. while turtle.detect() do
  8. turtle.dig()
  9. end
  10. turtle.digDown()
  11. if turtle.getInventoryCount==0 then
  12. slot= slot +1
  13. turtle.select(slot)
  14. end
  15. turtle.placeDown()
  16. turtle.forward()
  17.  
  18. end
  19. -- if it's going turn right, if its coming turn left
  20. if orientation then
  21. turtle.turnRight()
  22. turtle.forward()
  23. turtle.turnRight()
  24. orientation= !orientation
  25. else
  26. turtle.turnLeft()
  27. turtle.forward()
  28. turtle.turnLeft()
  29. orientation= !orientation
  30. end
  31.  
  32.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement