1
0
mirror of https://github.com/minetest/minetest_game.git synced 2025-06-28 04:40:22 +02:00

Add labels to ABMs

Useful for searches and the mod profiler.
This commit is contained in:
tenplus1
2016-08-08 10:56:13 +01:00
committed by paramat
parent 61a197ffd8
commit 619ac52693
6 changed files with 16 additions and 0 deletions

View File

@ -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,