Poop
This commit is contained in:
parent
bd69058208
commit
798fcc42a1
@ -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"].."\"")
|
||||
|
Loading…
Reference in New Issue
Block a user