Advertisement
k_goos

MineAPI

Jun 13th, 2013
67
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function digUp()
  2. while turtle.detectUp() do
  3. turtle.digUp()
  4. sleep(0.1)
  5. end
  6. end
  7. function digDown()
  8. while turtle.detectDown() do
  9. turtle.digDown()
  10. end
  11. end
  12. function dig()
  13. while turtle.detect() do
  14. turtle.dig()
  15. end
  16. end
  17. function forward()
  18. while turtle.forward() == false do
  19. turtle.dig()
  20. end
  21. end
  22. function moveUp()
  23. while turtle.up() == false do
  24. turtle.digUp()
  25. end
  26. end
  27. function moveDown()
  28. while turtle.down() == false do
  29. turtle.digDown()
  30. end
  31. end
Advertisement
RAW Paste Data Copied
Advertisement