Syntax
This commit is contained in:
parent
eb535fa029
commit
4269615573
@ -82,12 +82,15 @@ function digSafe(inspectAction, digAction)
|
|||||||
local status, block = inspectAction()
|
local status, block = inspectAction()
|
||||||
if status then
|
if status then
|
||||||
if block["name"]:lower():find("turtle") then
|
if block["name"]:lower():find("turtle") then
|
||||||
-- turtle in front of me. lets wait for it to move
|
-- turtle in front of me. its free space
|
||||||
return true
|
return true
|
||||||
else
|
else
|
||||||
digAction()
|
digAction()
|
||||||
|
-- gravel may take time to fall.
|
||||||
|
sleep(0.6)
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
|
-- No block in front of me. good
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user