Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --starting input
- print("Length of tunel:")
- length = read()
- print("Starting the dig")
- for i=1,length,1 do
- --Dig a row
- turtle.dig()
- turtle.digUp()
- turtle.digDown()
- turtle.up()
- turtle.turnRight()
- turtle.dig()
- turtle.down()
- turtle.dig()
- turtle.down()
- turtle.dig()
- turtle.turnLeft()
- turtle.turnLeft()
- turtle.dig()
- turtle.up()
- turtle.dig()
- turtle.up()
- turtle.dig()
- turtle.turnRight()
- turtle.down()
- --return
- turtle.turnLeft()
- turtle.turnLeft()
- for b = 0,i-1,1 do turtle.forward() end
- for b = 1,16,1 do
- turtle.select(b)
- turtle.drop()
- end
- --forward + 1
- turtle.turnLeft()
- turtle.turnLeft()
- for b = 0, i, 1 do turtle.forward() end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement