Advertisement
Andersfc

ny

Jun 15th, 2018
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.40 KB | None | 0 0
  1. turtle.select(16)
  2.  
  3. a=1
  4. b=0
  5. c=1
  6. function log()
  7. turtle.dig()
  8. turtle.forward()
  9. a=a+1
  10. while b == 0 do
  11. if turtle.compare(16)==true then
  12. turtle.dig()
  13. turtle.forward()
  14. c=c+1
  15. end
  16. if turtle.compare(16)==false then
  17. if turtle.compareUp(16)== true then
  18. turtle.digUp()
  19. turtle.up()
  20. a=a+1
  21. else
  22. b=1
  23. end
  24. end
  25. end
  26. for i = 1, c do
  27. turtle.back()
  28. end
  29. for i = 1, a do
  30. turtle.down()
  31. end
  32. end
  33.  
  34.  
  35. log()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement