Track ores
This commit is contained in:
parent
a6948364a0
commit
bd69058208
@ -123,10 +123,10 @@ function grabOres()
|
|||||||
local status, block = turtle.inspect()
|
local status, block = turtle.inspect()
|
||||||
if status and block["name"]:lower():find("ore") then
|
if status and block["name"]:lower():find("ore") then
|
||||||
ore = block["name"]:lower()
|
ore = block["name"]:lower()
|
||||||
if turtlestates["ores"][ore] then
|
if turtlestate["ores"][ore] then
|
||||||
turtlestates["ores"][ore] = turtlestates["ores"][ore] + 1
|
turtlestate["ores"][ore] = turtlestate["ores"][ore] + 1
|
||||||
else
|
else
|
||||||
turtlestates["ores"][ore] = 1
|
turtlestate["ores"][ore] = 1
|
||||||
end
|
end
|
||||||
turtle.dig()
|
turtle.dig()
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user