mirror of
https://github.com/luanti-org/minetest_game.git
synced 2025-06-07 06:06:10 -04:00
Add labels to ABMs
Useful for searches and the mod profiler.
This commit is contained in:
parent
61a197ffd8
commit
619ac52693
6 changed files with 16 additions and 0 deletions
|
@ -110,6 +110,7 @@ function flowers.flower_spread(pos, node)
|
|||
end
|
||||
|
||||
minetest.register_abm({
|
||||
label = "Flower spread",
|
||||
nodenames = {"group:flora"},
|
||||
neighbors = {"default:dirt_with_grass", "default:dirt_with_dry_grass",
|
||||
"default:desert_sand"},
|
||||
|
@ -167,6 +168,7 @@ minetest.register_node("flowers:mushroom_brown", {
|
|||
-- Mushroom spread and death
|
||||
|
||||
minetest.register_abm({
|
||||
label = "Mushroom spread",
|
||||
nodenames = {"flowers:mushroom_brown", "flowers:mushroom_red"},
|
||||
interval = 11,
|
||||
chance = 50,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue