Advertisement
Guest User

Untitled

a guest
Jul 16th, 2018
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1.  
  2. function mydig()
  3. if turtle.detect() then
  4. turtle.dig()
  5. end
  6. end
  7.  
  8.  
  9. for z=0,5 do
  10. for x=0,5 do
  11. dirx=0
  12. for y=0,5 do
  13. mydig()
  14. turtle.forward()
  15. end
  16. if (x < 4) then
  17. if (dirx == 0) then
  18. turtle.turnRight()
  19. mydig()
  20. turtle.forward()
  21. turtle.turnRight()
  22. dirx=1
  23. else
  24. turtle.turnLeft()
  25. mydig()
  26. turtle.forward()
  27. turtle.turnLeft()
  28. dirx=0
  29. end
  30. end
  31. end
  32. turtle.turnRight()
  33. turtle.turnRight()
  34. turtle.digDown()
  35. turtle.down()
  36. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement