Advertisement
Guest User

m

a guest
Aug 29th, 2015
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.55 KB | None | 0 0
  1. function turtle.move()
  2. if turtle.getFuelLevel() < 10 then
  3. turtle.select(1)
  4. turtle.digUp()
  5. turtle.placeUp()
  6. turtle.select(2)
  7. turtle.suckUp()
  8. turtle.refuel()
  9. turtle.select(1)
  10. turtle.digUp()
  11. end
  12. end
  13. local u = turtle.up
  14. local d = turtle.down
  15. local f = turtle.forward
  16. local b = turtle.back
  17. function turtle.up() turtle.move() u() end
  18. function turtle.down() turtle.move() d() end
  19. function turtle.forward() turtle.move() f() end
  20. function turtle.back() turtle.move() b() end
  21. while 1 do
  22. turtle.forward()
  23. turtle.up()
  24. turtle.back()
  25. turtle.down()
  26. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement