Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function DigTunnel(Int)
- torch = 0
- while Int > 0 do
- if turtle.detectUp() then
- turtle.digUp()
- end
- if turtle.detectDown() then
- turtle.digDown()
- end
- while turtle.detect() do
- turtle.dig()
- sleep(0.5)
- end
- if torch == 8 then
- turtle.select(2)
- turtle.placeDown()
- torch = 0
- end
- turtle.forward()
- torch = torch + 1
- Int = Int - 1
- end
- end
- DigTunnel(48)
- turtle.turnRight()
- DigTunnel(3)
- turtle.turnRight()
- DigTunnel(48)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement