Advertisement
Guest User

dK983nnK

a guest
Nov 18th, 2017
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. function DigTunnel(Int)
  2. torch = 0
  3. while Int > 0 do
  4. if turtle.detectUp() then
  5. turtle.digUp()
  6. end
  7. if turtle.detectDown() then
  8. turtle.digDown()
  9. end
  10. while turtle.detect() do
  11. turtle.dig()
  12. sleep(0.5)
  13. end
  14. if torch == 8 then
  15. turtle.select(2)
  16. turtle.placeDown()
  17. torch = 0
  18. end
  19. turtle.forward()
  20. torch = torch + 1
  21. Int = Int - 1
  22. end
  23. end
  24.  
  25. DigTunnel(48)
  26. turtle.turnRight()
  27. DigTunnel(3)
  28. turtle.turnRight()
  29. DigTunnel(48)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement