From 3b0555abd072ba1f5ec6b7063e2895e84ac4b52c Mon Sep 17 00:00:00 2001 From: neru Date: Thu, 8 May 2025 20:35:21 -0300 Subject: [PATCH] feat: add turtles command --- lua/CC Tweaked/tutel/tutel-host.lua | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/lua/CC Tweaked/tutel/tutel-host.lua b/lua/CC Tweaked/tutel/tutel-host.lua index b120396..33e13a7 100644 --- a/lua/CC Tweaked/tutel/tutel-host.lua +++ b/lua/CC Tweaked/tutel/tutel-host.lua @@ -339,6 +339,18 @@ function clearCommand() end 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 ]]