Advertisement
whitelava3203

turtlemover

Feb 2nd, 2020
161
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. while true do
  2. turtle.select(15)
  3. if turtle.compareUp() then
  4. turtle.select(4)
  5. turtle.drop()
  6. end
  7. turtle.select(16)
  8. if turtle.compareUp() then
  9. turtle.select(4)
  10. turtle.suck()
  11. end
  12. turtle.select(13)
  13. if turtle.compareDown() then
  14. turtle.turnLeft()
  15. end
  16. turtle.select(14)
  17. if turtle.compareDown() then
  18. turtle.turnRight()
  19. end
  20. if turtle.getFuelLevel() ~= "unlimited" and turtle.getFuelLevel() < 1 then
  21. turtle.select(1)
  22. turtle.refuel(1)
  23. end
  24. if turtle.detect() == false then
  25. while turtle.forward() == false do
  26. end
  27. end
  28. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement