2021-03-09 20:43:25 +00:00
|
|
|
--[[
|
2021-03-18 10:34:20 +00:00
|
|
|
This mod implements the API to register digging groups for mcl_autogroup. The
|
|
|
|
rest of the mod is implemented and documented in the mod _mcl_autogroup.
|
2021-03-09 20:43:25 +00:00
|
|
|
|
2021-03-18 10:34:20 +00:00
|
|
|
The mod is split up into two parts, mcl_autogroup and _mcl_autogroup.
|
|
|
|
mcl_autogroup contains the API functions used to register custom digging groups.
|
|
|
|
_mcl_autogroup contains most of the code. The leading underscore in the name
|
|
|
|
"_mcl_autogroup" is used to force Minetest to load that part of the mod as late
|
|
|
|
as possible. Minetest loads mods in reverse alphabetical order.
|
2021-03-09 20:43:25 +00:00
|
|
|
--]]
|
|
|
|
mcl_autogroup = {}
|
|
|
|
mcl_autogroup.registered_digtime_groups = {}
|
|
|
|
|
|
|
|
function mcl_autogroup.register_digtime_group(group, def)
|
|
|
|
mcl_autogroup.registered_digtime_groups[group] = def or {}
|
|
|
|
end
|