feat: add turtles command
This commit is contained in:
@@ -339,6 +339,18 @@ function clearCommand()
|
|||||||
end
|
end
|
||||||
registerConsoleCommand("clear", clearCommand)
|
registerConsoleCommand("clear", clearCommand)
|
||||||
|
|
||||||
|
function turtlesCommand()
|
||||||
|
for i=0, #turtles, 1 do
|
||||||
|
local turt = turtles[i]
|
||||||
|
|
||||||
|
local turtleMessage = ("coords: %x, %x, %x - fuel: %d - channel: %d - id: %d - status: %s"):format(position[1],
|
||||||
|
turt.position[2], turt.position[3], turt.fuel, turt.channel, turt.id, turt.status)
|
||||||
|
|
||||||
|
log.info(turtleMessage)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
registerConsoleCommand("turtles", turtlesCommand)
|
||||||
|
|
||||||
--[[
|
--[[
|
||||||
drawing functions
|
drawing functions
|
||||||
]]
|
]]
|
||||||
|
|||||||
Reference in New Issue
Block a user