diff --git a/Chat-Command-Reference.md b/Chat-Command-Reference.md index b94f785..dd50445 100644 --- a/Chat-Command-Reference.md +++ b/Chat-Command-Reference.md @@ -926,6 +926,42 @@ Returns the absolute canonical name of a node, given an alias or partial node na ``` +### `//ngroups [v[erbose]]` +Lists the groups that a given node is a member of. For example: + +```weacmd +//ngroups sand +``` + +Might return: + +``` +default:sand ∈ sand crumbly falling_node +``` + +Groups in Minetest can also have a numerical value greater than 0. Append `v` or `verbose` to see those values: + +```weacmd +//ngroups sand v +//ngroups sand verbose +``` + +...both of the above might produce an output like this: + +``` +default:sand ∈ sand=1 crumbly=3 falling_node=1 +``` + +Finally, the customary misc examples: + +```weacmd +//ngroups sand +//ngroups bakedclay:orange v +//ngroups cactus +//ngroups default:dry_shrub v +``` + + ## Selection