Update canemine
This commit is contained in:
parent
c7110f161c
commit
7b047df391
@ -58,8 +58,8 @@ end
|
|||||||
|
|
||||||
-- If the block in front of the turtle is desired, take it.
|
-- If the block in front of the turtle is desired, take it.
|
||||||
function grabOres()
|
function grabOres()
|
||||||
local target = turtle.inspect()
|
local status, block = turtle.inspect()
|
||||||
if target and target["name"]:lower():find("ore") then
|
if status and block["name"]:lower():find("ore") then
|
||||||
turtle.dig()
|
turtle.dig()
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user