Module extend_group
Extend callbacks for all nodes in a specific group.
Iterates over core.registered_items and applies extend_item to
every node belonging to the given group.
Functions
| extend_group (group_name, extend_def) | Extend all nodes in a group. |
Functions
- extend_group (group_name, extend_def)
-
Extend all nodes in a group.
Parameters:
- group_name string Name of the group to target
- extend_def table Table of callbacks to extend (see extend_item)
Usage:
extend_group("leaves", { after_destruct = function(next, pos, old_node) minetest.remove_node(pos) if next then next(pos, old_node) end end })