while turtle.detect
This commit is contained in:
parent
500a0a7b9f
commit
aea4b4044a
1 changed files with 2 additions and 2 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue