Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function dig()
- if turtle.detectDown() then
- if turtle.digDown() then
- turtle.digDown()
- else
- if turtle.detect() then
- if turtle.dig() then
- turtle.dig()
- else
- turtle.up()
- end
- else
- if turtle.detectDown() == false
- turtle.forward()
- else
- turtle.down()
- end
- end
- else
- end
- end
- while true do
- dig()
- end
Advertisement
Add Comment
Please, Sign In to add comment