Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local function dig1()
- if turtle.detect() then
- turtle.dig()
- dig1()
- else
- turtle.turnLeft()
- dig5()
- end
- local function dig2()
- if turtle.detect() then
- turtle.dig()
- dig2()
- else
- turtle.turnLeft()
- turtle.turnLeft()
- dig1()
- end
- local function dig3()
- if turtle.detectUp() then
- turtle.digUp()
- dig3()
- else
- turtle.turnleft()
- dig2()
- end
- local function dig4()
- if turtle.detectDown() then
- turtle.digDown()
- dig4()
- else
- dig3()
- end
- local function dig5()
- if turtle.detect() then
- turtle.dig()
- else
- turtle.forward()
- dig4()
- end
- end
- end
- end
- end
- end
- dig5()
Advertisement
Add Comment
Please, Sign In to add comment