Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- term.clear()
- term.setCursorPos(1,1)
- --Functions
- local function start()
- turtle.dig()
- turtle.forward()
- end
- local function cut()
- turtle.detectUp()
- while turtle.detectUp() do
- turtle.digUp()
- turtle.up()
- if turtle.detectUp() == false then
- while not turtle.detectDown() do
- turtle.down()
- end
- end
- end
- end
- term.write("Begin?: ")
- input = read()
- if input == "y" then
- while turtle.detect() do
- start()
- cut()
- end
- else
- print("Ok, goodbye")
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement