Poop
This commit is contained in:
parent
bd69058208
commit
798fcc42a1
@ -123,9 +123,12 @@ 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()
|
||||||
|
print("digging"..tostring(ore))
|
||||||
if turtlestate["ores"][ore] then
|
if turtlestate["ores"][ore] then
|
||||||
|
print("+1")
|
||||||
turtlestate["ores"][ore] = turtlestate["ores"][ore] + 1
|
turtlestate["ores"][ore] = turtlestate["ores"][ore] + 1
|
||||||
else
|
else
|
||||||
|
print("=1")
|
||||||
turtlestate["ores"][ore] = 1
|
turtlestate["ores"][ore] = 1
|
||||||
end
|
end
|
||||||
turtle.dig()
|
turtle.dig()
|
||||||
@ -410,6 +413,7 @@ function emptyToBarrel()
|
|||||||
end
|
end
|
||||||
|
|
||||||
function drawStatus()
|
function drawStatus()
|
||||||
|
return
|
||||||
print("Turtle ("..tostring(turtlestate["id"])..")")
|
print("Turtle ("..tostring(turtlestate["id"])..")")
|
||||||
print()
|
print()
|
||||||
print(" \""..turtlestate["name"].."\"")
|
print(" \""..turtlestate["name"].."\"")
|
||||||
|
Loading…
Reference in New Issue
Block a user