Commit graph

8 commits

Author SHA1 Message Date
Elias Åström
42c7186674 Do not register "creative_breakable" as a diggroup 2021-04-16 22:46:08 +02:00
Elias Åström
b50addac55 Make changes to the mcl_autogroup API
Group levels are now specified as a list of names when registering a
digging group.  Digging groups which do not have specified levels will
support tools having two levels, 0 and 1 where 0 means the tool can dig
but not harvest the node and 1 means it can also harvest the node.  If
more levels are required one has to specifiy them when registering the
digging group.
2021-04-16 22:33:55 +02:00
Elias Åström
bb5094f657 Rename register_digtime_group to register_diggroup 2021-04-16 22:32:49 +02:00
Elias Åström
012e150b59 Rewrite mcl_autogroup
These changes are primarly made to make mcl_autogroup more efficient.
Previously enchanted tools required storing around 21 kB of metadata due
to the way the previous version of the mod was implemented.  This caused
a lot of lag and a huge amount of network traffic.  With the changes
enchanted tools won't require more than 1 kB of metadata.

The mod is also rewritten to use an API to register digging groups and
compute the groupcaps for tools.  This will make it easier for modders
to register custom digging groups.

The mod is now split up into two parts.  One part called "mcl_autogroup"
to implement the API for registering custom digging groups, and the
other part called "_mcl_autogroup" which contains most of the code which
has to be loaded after most mods.
2021-04-16 22:31:42 +02:00
Wuzzy
7d2ffe1c92 More mcl_core refactoring 2017-07-07 16:52:28 +02:00
Wuzzy
722d4cb500 Heavily refactor nodes in mcl_core 2017-07-07 16:37:05 +02:00
Wuzzy
151c1e62ba Tools to mcl_tools, way more efficient digging time definitions 2017-02-26 18:44:48 +01:00
Wuzzy
fc02d0730e Move mcl_core to ITEMS modpack and add description 2017-02-17 23:14:21 +01:00
Renamed from mods/CORE/mcl_core/init.lua (Browse further)