Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print("Tunnel has started.")
- io.write("Please enter the width, in number of blocks, to dig: ")
- width = io.read()
- io.write("Please enter the height, in number of blocks, to dig: ")
- height = io.read()
- print("Tunnel will run with parameters width = " .. width " and height = " .. )
- currentDug = 0
- for i = 0, height, 1 do
- while (currentDug < width) do
- turtle.dig()
- currentDug += 1
- turtle.forward()
- if (currentDug == width) then
- turtle.digUp()
- turtle.up()
- currentDug = 1
- turtle.turnRight()
- turtle.turnRight()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement