feat(tutle-utils): add digAllUp method
This commit is contained in:
parent
c639157bdb
commit
c030b03a11
@ -178,6 +178,16 @@ turtleUtils.digAll = function()
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
turtleUtils.digAllUp = function()
|
||||||
|
while true do
|
||||||
|
local ok, err = turtle.digUp()
|
||||||
|
|
||||||
|
if not ok then
|
||||||
|
return ok, err
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
turtleUtils.countFreeSlots = function()
|
turtleUtils.countFreeSlots = function()
|
||||||
local freeSlots = 0
|
local freeSlots = 0
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user