turtle: improve state execution and interaction
This commit is contained in:
parent
f1dfe28848
commit
76f3138dbe
@ -350,8 +350,17 @@ minetest.register_chatcommand("tlang", {
|
|||||||
end
|
end
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_chatcommand("tkill", {
|
minetest.register_chatcommand("tl_list", {
|
||||||
description = "Kill tlang task.",
|
description = "List running tlang states.",
|
||||||
|
func = function()
|
||||||
|
for i, v in ipairs(turtle.states) do
|
||||||
|
minetest.display_chat_message(tostring(i) .. " " .. v.name)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_chatcommand("tl_kill", {
|
||||||
|
description = "Kill a tlang task.",
|
||||||
params = "<task name>",
|
params = "<task name>",
|
||||||
func = turtle.kill_symbolic
|
func = turtle.kill_symbolic
|
||||||
})
|
})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user