KnowThyParadox

Simple Tunnel

Nov 9th, 2013
239
0
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. local tunnelDepth = 24
  2. local tunnels = 3
  3.  
  4. for tunnel = 1, tunnels do
  5. for i = 1, tunnelDepth do
  6. if turtle.detect() then
  7. turtle.dig()
  8. end
  9. turtle.forward()
  10.  
  11. if turtle.detectDown() then
  12. turtle.digDown()
  13. end
  14.  
  15. if turtle.detectUp() then
  16. turtle.digUp()
  17. end
  18. end
  19.  
  20. for j = 1, tunnelDepth do
  21. turtle.back()
  22. end
  23. turtle.turnLeft()
  24. turtle.forward()
  25. turtle.turnRight()
  26. end
Advertisement
Comments
  • Comment was deleted
Add Comment
Please, Sign In to add comment