mirror of
https://github.com/minetest-mods/technic.git
synced 2024-08-21 05:54:05 +02:00
label all ABMs for profiler
This commit is contained in:
parent
9755127ffd
commit
78f16c3e8e
@ -221,6 +221,7 @@ end
|
||||
|
||||
|
||||
minetest.register_abm({
|
||||
label = "Machines: reactor melt-down check",
|
||||
nodenames = {"technic:hv_nuclear_reactor_core_active"},
|
||||
interval = 4,
|
||||
chance = 1,
|
||||
|
@ -146,6 +146,7 @@ minetest.register_node("technic:power_radiator", {
|
||||
})
|
||||
|
||||
minetest.register_abm({
|
||||
label = "Machines: run power radiator",
|
||||
nodenames = {"technic:power_radiator"},
|
||||
interval = 1,
|
||||
chance = 1,
|
||||
|
@ -70,6 +70,7 @@ minetest.register_node("technic:coal_alloy_furnace_active", {
|
||||
})
|
||||
|
||||
minetest.register_abm({
|
||||
label = "Machines: run coal alloy furnace",
|
||||
nodenames = {"technic:coal_alloy_furnace", "technic:coal_alloy_furnace_active"},
|
||||
interval = 1,
|
||||
chance = 1,
|
||||
|
@ -104,6 +104,7 @@ minetest.register_node("technic:injector", {
|
||||
})
|
||||
|
||||
minetest.register_abm({
|
||||
label = "Machines: run injector",
|
||||
nodenames = {"technic:injector"},
|
||||
interval = 1,
|
||||
chance = 1,
|
||||
|
@ -35,7 +35,7 @@ minetest.register_node("technic:power_monitor",{
|
||||
|
||||
minetest.register_abm({
|
||||
nodenames = {"technic:power_monitor"},
|
||||
label = "Power Monitor",
|
||||
label = "Machines: run power monitor",
|
||||
interval = 1,
|
||||
chance = 1,
|
||||
action = function(pos, node, active_object_count, active_object_count_wider)
|
||||
|
@ -436,6 +436,7 @@ local function switching_station_timeout_count(pos, tier)
|
||||
end
|
||||
end
|
||||
minetest.register_abm({
|
||||
label = "Machines: timeout check",
|
||||
nodenames = {"group:technic_machine"},
|
||||
interval = 1,
|
||||
chance = 1,
|
||||
@ -461,6 +462,7 @@ minetest.register_abm({
|
||||
|
||||
--Re-enable disabled switching station if necessary, similar to the timeout above
|
||||
minetest.register_abm({
|
||||
label = "Machines: re-enable check",
|
||||
nodenames = {"technic:switching_station"},
|
||||
interval = 1,
|
||||
chance = 1,
|
||||
|
@ -346,6 +346,7 @@ end
|
||||
|
||||
if minetest.setting_getbool("enable_damage") then
|
||||
minetest.register_abm({
|
||||
label = "Radiation damage",
|
||||
nodenames = {"group:radioactive"},
|
||||
interval = 1,
|
||||
chance = 1,
|
||||
@ -438,6 +439,7 @@ minetest.register_node("technic:chernobylite_block", {
|
||||
})
|
||||
|
||||
minetest.register_abm({
|
||||
label = "Corium: boil-off water (sources)",
|
||||
nodenames = {"group:water"},
|
||||
neighbors = {"technic:corium_source"},
|
||||
interval = 1,
|
||||
@ -448,6 +450,7 @@ minetest.register_abm({
|
||||
})
|
||||
|
||||
minetest.register_abm({
|
||||
label = "Corium: boil-off water (flowing)",
|
||||
nodenames = {"technic:corium_flowing"},
|
||||
neighbors = {"group:water"},
|
||||
interval = 1,
|
||||
@ -458,6 +461,7 @@ minetest.register_abm({
|
||||
})
|
||||
|
||||
minetest.register_abm({
|
||||
label = "Corium: become chernobylite",
|
||||
nodenames = {"technic:corium_flowing"},
|
||||
interval = 5,
|
||||
chance = (griefing and 10 or 1),
|
||||
@ -468,6 +472,7 @@ minetest.register_abm({
|
||||
|
||||
if griefing then
|
||||
minetest.register_abm({
|
||||
label = "Corium: griefing",
|
||||
nodenames = {"technic:corium_source", "technic:corium_flowing"},
|
||||
interval = 4,
|
||||
chance = 4,
|
||||
|
@ -62,6 +62,7 @@ minetest.register_craftitem("technic:rubber", {
|
||||
})
|
||||
|
||||
minetest.register_abm({
|
||||
label = "Tools: tree tap",
|
||||
nodenames = {"moretrees:rubber_tree_trunk_empty"},
|
||||
interval = 60,
|
||||
chance = 15,
|
||||
|
@ -73,6 +73,7 @@ technic.rubber_tree_model={
|
||||
|
||||
minetest.register_abm({
|
||||
nodenames = {"moretrees:rubber_tree_sapling"},
|
||||
label = "Worldgen: grow rubber tree sapling",
|
||||
interval = 60,
|
||||
chance = 20,
|
||||
action = function(pos, node)
|
||||
|
Loading…
Reference in New Issue
Block a user