4 function grouplist.register(group)
6 grouplists.lists[group] = list
10 function grouplist.get(group)
11 return grouplist.lists[group] or {}
14 function grouplist.insert(item, group)
15 table.insert(grouplist.get(group), item)
18 minetest.register_on_mods_loaded(function()
19 for nodename, nodedef in pairs(minetest.registered_items) do
20 for group, list in pairs(grouplist.lists) do
21 if nodedef.groups[group] and nodedef.groups[group] > 0 then
22 table.insert(list, nodename)
28 elidragon.grouplist = grouplist