ABM question.
Alright, so I'm working on a mod/extension for a mod. Now if I register a ABM, will that apply to all future blocks of the same node?
(example)
Will this abm be applied to future nodes of the "somenode"? Or does it affect only nodes currently placed?
(example)
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
- Code: Select all
minetest.register_abm({
nodenames = {"somemod:somenode"},
interval = 1,
chance = 1,
action = function(pos, node, active_object_count, active_object_count_wider)
minetest.env:remove_node(pos)
})
Will this abm be applied to future nodes of the "somenode"? Or does it affect only nodes currently placed?