1
0
Fork 0
MineClone2/mods/CORE/_mcl_autogroup
Elias Åström f8461d5e90 Remove mcl_autogroups.get_groupcaps
Requiring tool definitions to call a function in _mcl_autogroup means
that they need to be loaded after _mcl_autogroup.  This can cause
problems because _mcl_autogroup needs to be loaded after all tool and
node definitions are completed.

Because of this the API is changed so tool definitions instead put the
data used to generate groupcaps in the custom field
_mcl_autogroup_groupcaps.  _mcl_autogroup will then go through all
registered tools and update the groupcaps for every tool where this
field is present.  This means that no mod ever has to depend on
_mcl_autogroup.
2021-03-18 11:33:18 +01:00
..
README.txt Rename mcl_autogroup to _mcl_autogroup 2018-05-08 16:43:25 +02:00
depends.txt Rewrite mcl_autogroup 2021-03-18 11:32:18 +01:00
description.txt Rename mcl_autogroup to _mcl_autogroup 2018-05-08 16:43:25 +02:00
init.lua Remove mcl_autogroups.get_groupcaps 2021-03-18 11:33:18 +01:00
mod.conf Rename mcl_autogroup to _mcl_autogroup 2018-05-08 16:43:25 +02:00

README.txt

This mod automatically adds groups to items based on item metadata.

Specifically, this mod has 2 purposes:
1) Automatically adding the group “solid” for blocks considered “solid” in Minecraft.
2) Generating digging time group for all nodes based on node metadata (it's complicated)

See init.lua for more infos.

The leading underscore in the name “_mcl_autogroup” was added to force Minetest to load this mod as late as possible.
As of 0.4.16, Minetest loads mods in reverse alphabetical order.