diff --git a/mine/client.lua b/mine/client.lua index 497d1ca..5d89ade 100644 --- a/mine/client.lua +++ b/mine/client.lua @@ -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"].."\"")