diff --git a/turtle.lua b/turtle.lua index d667855..57d1ec5 100644 --- a/turtle.lua +++ b/turtle.lua @@ -509,6 +509,14 @@ local commands = { return true, "Starting exploration" end, + mine = function() + print("Mine command received") + state.mode = "exploring" -- Use exploring mode for mining + state.stuckCounter = 0 + broadcastStatus() + return true, "Starting mining" + end, + returnHome = function() print("Return home command received") state.mode = "returning"