This commit is contained in:
Dominic Zimmer 2020-07-08 00:14:29 +02:00
parent bd69058208
commit 798fcc42a1

View File

@ -123,9 +123,12 @@ function grabOres()
local status, block = turtle.inspect()
if status and block["name"]:lower():find("ore") then
ore = block["name"]:lower()
print("digging"..tostring(ore))
if turtlestate["ores"][ore] then
print("+1")
turtlestate["ores"][ore] = turtlestate["ores"][ore] + 1
else
print("=1")
turtlestate["ores"][ore] = 1
end
turtle.dig()
@ -410,6 +413,7 @@ function emptyToBarrel()
end
function drawStatus()
return
print("Turtle ("..tostring(turtlestate["id"])..")")
print()
print(" \""..turtlestate["name"].."\"")