Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local x = 1
- function df() -- Dig forward on block
- turtle.dig()
- turtle.forward()
- turtle.digUp()
- turtle.digDown()
- end
- function reverse() --does a full 180 in the same block
- turtle.turnLeft()
- turtle.turnLeft()
- end
- -- Main loop --
- term.write("Depth = ") --gets x from the user
- x = tonumber(read())
- for i = 1,x do
- df()
- end
- reverse()
- for i = 1,x do
- turtle.forward()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement