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