Add labels to all ABMs

master
Wuzzy 2020-04-08 16:10:57 +02:00
parent 76515d12c7
commit 0e4ed205a2
16 changed files with 43 additions and 13 deletions

View File

@ -45,6 +45,7 @@ minetest.register_entity("drippingwater:drop_water", {
--Create drop
minetest.register_abm({
label = "Spawn water droplets",
nodenames = {"group:porous"},
neighbors = {"group:water"},
interval = 2,

View File

@ -281,6 +281,7 @@ farming.register_plant = function(name, def)
-- Growing ABM
minetest.register_abm({
label = "Grow seeds",
nodenames = {"group:" .. pname, "group:seed"},
neighbors = {"group:soil"},
interval = 93,

View File

@ -54,6 +54,7 @@ minetest.register_node("farming:straw", {
})
minetest.register_abm({
label = "Update soil wetness",
nodenames = {"group:field"},
interval = 15,
chance = 4,

View File

@ -214,6 +214,7 @@ minetest.register_node("itemframes:pedestal",{
-- due to /clearobjects or similar
minetest.register_abm({
label = "Respawn entities of item frames and pedestals",
nodenames = {"itemframes:frame", "itemframes:pedestal"},
interval = 15,
chance = 1,

View File

@ -78,8 +78,9 @@ minetest.register_craft({
}
})
minetest.register_abm(
{nodenames = {"mesecons_blinkyplant:blinky_plant_off"},
minetest.register_abm({
label = "Blink blinky plant on",
nodenames = {"mesecons_blinkyplant:blinky_plant_off"},
interval = BLINKY_PLANT_INTERVAL,
chance = 1,
action = function(pos, node, active_object_count, active_object_count_wider)
@ -91,6 +92,7 @@ minetest.register_abm(
})
minetest.register_abm({
label = "Blink blinky plant off",
nodenames = {"mesecons_blinkyplant:blinky_plant_on"},
interval = BLINKY_PLANT_INTERVAL,
chance = 1,

View File

@ -86,8 +86,9 @@ minetest.register_craft({
}
})
minetest.register_abm(
{nodenames = {"mesecons_detector:object_detector_off"},
minetest.register_abm({
label = "Detect objects at inactive object detector",
nodenames = {"mesecons_detector:object_detector_off"},
interval = 1.0,
chance = 1,
action = function(pos)
@ -98,8 +99,9 @@ minetest.register_abm(
end,
})
minetest.register_abm(
{nodenames = {"mesecons_detector:object_detector_on"},
minetest.register_abm({
label = "Detect absense of objects at active cobject detector",
nodenames = {"mesecons_detector:object_detector_on"},
interval = 1.0,
chance = 1,
action = function(pos)

View File

@ -58,7 +58,8 @@ minetest.register_node("mesecons_hydroturbine:hydro_turbine_on", {
minetest.register_abm({
nodenames = {"mesecons_hydroturbine:hydro_turbine_off"},
label = "Turn on hydroturbine",
nodenames = {"mesecons_hydroturbine:hydro_turbine_off"},
interval = 1,
chance = 1,
action = function(pos, node, active_object_count, active_object_count_wider)
@ -72,7 +73,8 @@ nodenames = {"mesecons_hydroturbine:hydro_turbine_off"},
})
minetest.register_abm({
nodenames = {"mesecons_hydroturbine:hydro_turbine_on"},
label = "Turn off hydroturbine",
nodenames = {"mesecons_hydroturbine:hydro_turbine_on"},
interval = 1,
chance = 1,
action = function(pos, node, active_object_count, active_object_count_wider)

View File

@ -66,8 +66,9 @@ minetest.register_craft({
}
})
minetest.register_abm(
{nodenames = {"mesecons_solarpanel:solar_panel_off"},
minetest.register_abm({
label = "Activate solar panel",
nodenames = {"mesecons_solarpanel:solar_panel_off"},
interval = 1,
chance = 1,
action = function(pos, node, active_object_count, active_object_count_wider)
@ -80,8 +81,9 @@ minetest.register_abm(
end,
})
minetest.register_abm(
{nodenames = {"mesecons_solarpanel:solar_panel_on"},
minetest.register_abm({
label = "Deactivate solar panel",
nodenames = {"mesecons_solarpanel:solar_panel_on"},
interval = 1,
chance = 1,
action = function(pos, node, active_object_count, active_object_count_wider)

View File

@ -85,6 +85,7 @@ minetest.register_node("mesecons_torch:mesecon_torch_on", {
})
minetest.register_abm({
label = "Handle mesecon torch",
nodenames = {"mesecons_torch:mesecon_torch_off","mesecons_torch:mesecon_torch_on"},
interval = 1,
chance = 1,

View File

@ -122,7 +122,9 @@ minetest.register_node("pipeworks:autocrafter", {
end
})
minetest.register_abm({nodenames = {"pipeworks:autocrafter"}, interval = 1, chance = 1,
minetest.register_abm({
label = "Let autocrafter craft stuff",
nodenames = {"pipeworks:autocrafter"}, interval = 1, chance = 1,
action = function(pos, node)
local meta = minetest.get_meta(pos)
local inv = meta:get_inventory()

View File

@ -166,6 +166,7 @@ if REGISTER_COMPATIBILITY then
end
end
minetest.register_abm({
label = "Scan for pipe objects",
nodenames = {"group:pipe_to_update"},
interval = 1,
chance = 1,
@ -189,6 +190,7 @@ table.insert(pipes_full_nodenames,"pipeworks:entry_panel_loaded")
table.insert(pipes_full_nodenames,"pipeworks:flow_sensor_loaded")
minetest.register_abm({
label = "Check for pipe inflows",
nodenames = pipes_empty_nodenames,
interval = 1,
chance = 1,
@ -198,6 +200,7 @@ minetest.register_abm({
})
minetest.register_abm({
label = "Check pipe sources",
nodenames = pipes_full_nodenames,
interval = 1,
chance = 1,
@ -207,6 +210,7 @@ minetest.register_abm({
})
minetest.register_abm({
label = "Update pipe spigots",
nodenames = {"pipeworks:spigot","pipeworks:spigot_pouring"},
interval = 1,
chance = 1,
@ -216,6 +220,7 @@ minetest.register_abm({
})
minetest.register_abm({
label = "Update fountainheads",
nodenames = {"pipeworks:fountainhead","pipeworks:fountainhead_pouring"},
interval = 1,
chance = 1,

View File

@ -295,6 +295,7 @@ function plantslib:spawn_on_surfaces(sd,sp,sr,sc,ss,sa)
minetest.register_abm({
label = "Plantlife: Spawn plants",
nodenames = biome.spawn_surfaces,
interval = biome.interval,
chance = biome.spawn_chance,
@ -398,6 +399,7 @@ function plantslib:grow_plants(opts)
minetest.register_abm({
label = "Plantlib: Plant growth/death",
nodenames = { options.grow_plant },
interval = options.interval,
chance = options.grow_chance,

View File

@ -202,6 +202,7 @@ minetest.register_node("refruit:flower_olive", {
--abm's
minetest.register_abm({
label = "Grow apple bud to apple flower",
nodenames = {"refruit:bud_apple"},
neighbors = {"group:leaves"},
interval = 34,
@ -212,6 +213,7 @@ minetest.register_abm({
})
minetest.register_abm({
label = "Grow apple flower to apple",
nodenames = {"refruit:flower_apple"},
neighbors = {"group:leaves"},
interval = 33,
@ -224,6 +226,7 @@ minetest.register_abm({
--
minetest.register_abm({
label = "Grow olive bud to olive flower",
nodenames = {"refruit:bud_olive"},
neighbors = {"group:leaves"},
interval = 35,
@ -234,6 +237,7 @@ minetest.register_abm({
})
minetest.register_abm({
label = "Grow olive flower to olive",
nodenames = {"refruit:flower_olive"},
neighbors = {"group:leaves"},
interval = 34,

View File

@ -869,6 +869,7 @@ build_char_db()
-- restore signs' text after /clearobjects and the like
minetest.register_abm({
label = "Respawn sign text",
nodenames = signs_lib.sign_node_list,
interval = 15,
chance = 1,

View File

@ -231,6 +231,7 @@ minetest.register_craft({ output = "simple_bushes:plant_pot", recipe = {
-- abm
minetest.register_abm({
label = "Spread flora",
nodenames = {"group:flora"},
neighbors = {"hades_core:dirt_with_grass"},
interval = 150,

View File

@ -178,6 +178,7 @@ minetest.register_node("vines:vine_rotten", {
--ABM
minetest.register_abm({
label = "Vine rot",
nodenames = {"vines:vine", "vines:side", "vines:willow"},
interval = 300,
chance = 8,
@ -192,6 +193,7 @@ minetest.register_abm({
minetest.register_abm({
label = "Grow vines",
nodenames = {"vines:vine", "vines:side", "vines:willow"},
interval = 300,
chance = 2,