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
    })
generated by LDoc 1.5.0 Last updated 2026-03-13 21:12:31