Boop
This commit is contained in:
parent
1e50b8fbad
commit
61ab5c3337
@ -76,6 +76,7 @@ end
|
|||||||
-- Returns: the depth dug
|
-- Returns: the depth dug
|
||||||
function digDeep(moveAction, digAction, inspectAction, limit)
|
function digDeep(moveAction, digAction, inspectAction, limit)
|
||||||
local depth = 0
|
local depth = 0
|
||||||
|
grabOres()
|
||||||
while true do
|
while true do
|
||||||
-- termination condition:
|
-- termination condition:
|
||||||
-- * if limit != -1: limit > 0
|
-- * if limit != -1: limit > 0
|
||||||
@ -124,9 +125,8 @@ function digShaft()
|
|||||||
turtle.turnLeft()
|
turtle.turnLeft()
|
||||||
digDeep(turtle.up, noop, noop, depth)
|
digDeep(turtle.up, noop, noop, depth)
|
||||||
turtle.turnLeft()
|
turtle.turnLeft()
|
||||||
turtle.up()
|
|
||||||
turtle.up()
|
|
||||||
turtle.digUp()
|
turtle.digUp()
|
||||||
|
turtle.up()
|
||||||
selectCobble()
|
selectCobble()
|
||||||
turtle.placeDown()
|
turtle.placeDown()
|
||||||
turtle.up()
|
turtle.up()
|
||||||
|
Loading…
Reference in New Issue
Block a user