while turtle.detect

This commit is contained in:
Nathanaël Courant 2020-08-19 22:50:34 +02:00
parent 500a0a7b9f
commit aea4b4044a

View file

@ -228,14 +228,14 @@ end
function mine_shaft()
turn_abs(0)
while depth < SHAFT_DEPTH do
if turtle.detect() then
while turtle.detect() do
turtle.dig()
end
move_forward()
end
turn_abs(2)
while depth > 0 do
if turtle.detect() then
while turtle.detect() do
turtle.dig()
end
move_forward()