turtle/behavior.lua
2025-06-27 14:17:07 +01:00

25 lines
412 B
Lua

local M = {}
local currentStatus = "idle"
function M.getStatus()
return currentStatus
end
function M.run()
while true do
currentStatus = "moving backward"
for i = 1, 10 do
turtle.back()
sleep(0.5)
end
currentStatus = "moving forward"
for i = 1, 10 do
turtle.forward()
sleep(0.5)
end
end
end
return M