Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- fly = fly or 0
- dig = dig or 0
- arg = (...)
- arg = tonumber(arg) or 1
- x = 0
- while x < arg do
- if tog == 1 then
- turtle.dig()
- end
- if fly == 1 then
- turtle.forward()
- x = x + 1
- end
- while fly == 0 and turtle.detect() == true do
- turtle.up()
- end
- if fly == 0 then
- turtle.forward()
- x = x + 1
- end
- while fly == 0 and turtle.detectDown() == false do
- turtle.down()
- end
- end
Add Comment
Please, Sign In to add comment