Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --anti gravel function
- local function digUntilEmpty()
- while turtle.detect() do
- turtle.dig()
- end
- end
- x = 0
- d = 0
- print("Enter length of tunnel:")
- local d = tonumber(io.read())
- while x < d do
- digUntilEmpty()
- turtle.digUp()
- turtle.digDown()
- turtle.forward()
- x = x + 1
- end
- x = 0
- turtle.turnLeft()
- turtle.turnLeft()
- while x < d do
- turtle.forward()
- x = x + 1
- end
Advertisement
Add Comment
Please, Sign In to add comment