Compare commits
2 Commits
3b0555abd0
...
6486731698
| Author | SHA1 | Date | |
|---|---|---|---|
| 6486731698 | |||
| d72ca4a727 |
@@ -340,10 +340,15 @@ end
|
|||||||
registerConsoleCommand("clear", clearCommand)
|
registerConsoleCommand("clear", clearCommand)
|
||||||
|
|
||||||
function turtlesCommand()
|
function turtlesCommand()
|
||||||
|
if #turtles == 0 then
|
||||||
|
log.info("no turtles registered")
|
||||||
|
return
|
||||||
|
end
|
||||||
|
|
||||||
for i=0, #turtles, 1 do
|
for i=0, #turtles, 1 do
|
||||||
local turt = turtles[i]
|
local turt = turtles[i]
|
||||||
|
|
||||||
local turtleMessage = ("coords: %x, %x, %x - fuel: %d - channel: %d - id: %d - status: %s"):format(position[1],
|
local turtleMessage = ("coords: %x, %x, %x - fuel: %d - channel: %d - id: %d - status: %s"):format(turt.position[1],
|
||||||
turt.position[2], turt.position[3], turt.fuel, turt.channel, turt.id, turt.status)
|
turt.position[2], turt.position[3], turt.fuel, turt.channel, turt.id, turt.status)
|
||||||
|
|
||||||
log.info(turtleMessage)
|
log.info(turtleMessage)
|
||||||
|
|||||||
Reference in New Issue
Block a user