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()
|
function mine_shaft()
|
||||||
turn_abs(0)
|
turn_abs(0)
|
||||||
while depth < SHAFT_DEPTH do
|
while depth < SHAFT_DEPTH do
|
||||||
if turtle.detect() then
|
while turtle.detect() do
|
||||||
turtle.dig()
|
turtle.dig()
|
||||||
end
|
end
|
||||||
move_forward()
|
move_forward()
|
||||||
end
|
end
|
||||||
turn_abs(2)
|
turn_abs(2)
|
||||||
while depth > 0 do
|
while depth > 0 do
|
||||||
if turtle.detect() then
|
while turtle.detect() do
|
||||||
turtle.dig()
|
turtle.dig()
|
||||||
end
|
end
|
||||||
move_forward()
|
move_forward()
|
||||||
|
|
Loading…
Reference in a new issue