1
0
Fork 0
Commit Graph

24 Commits (90bd0ee3153ec8cf8c32e9b1a07177d1781075b2)

Author SHA1 Message Date
Elias Åström 0996a83ba0 Assert that both parts of mcl_autogroup exist 2021-03-20 19:32:04 +01:00
Elias Åström bec1f786a6 Improve documentation of mcl_autogroup 2021-03-18 11:35:40 +01:00
Elias Åström e77473e800 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-03-18 11:35:40 +01:00
Elias Åström f0528b11d7 Make mcl_enchanting use the new mcl_autogroups
The function mcl_autogroups.get_groupcaps is used by mods to get the
groupcaps for tools with efficiency enchantments.  This function is used
by mcl_enchanting when enchanting tools with efficiency.
2021-03-18 11:34:26 +01:00
Elias Åström 0c90dda04c Rename register_digtime_group to register_diggroup 2021-03-18 11:34:26 +01:00
Elias Åström fa86d4e5eb Change comments for mcl_autogroup 2021-03-18 11:34:20 +01:00
Elias Åström fb6f5eae7a 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-03-18 11:32:18 +01:00
Wuzzy fff3eb1ee7 Rename mcl_autogroup to _mcl_autogroup
This should fix some autogroup-related issues due to loading order.
2018-05-08 16:43:25 +02:00
Wuzzy 093e9b0b08 Declare observers not opaque 2018-01-28 19:25:05 +01:00
Wuzzy 886a717b30 Remove blabla in mcl_autogroup 2017-05-25 02:27:10 +02:00
Wuzzy c12f16b73b Add digging groups only to diggable nodes 2017-03-30 03:07:04 +02:00
Wuzzy d03b002d8d Consider falling nodes to be solid 2017-03-11 07:21:50 +01:00
Wuzzy d9a61e826a Add opaque group 2017-03-10 20:01:45 +01:00
Wuzzy c555d7c60f Fix nodes not breakable in creative 2017-02-28 00:14:31 +01:00
Wuzzy c80433aaf4 Fix dig times of wool and cobweb 2017-02-27 19:38:48 +01:00
Wuzzy 7dd5afe28f Fix handy digging times 2017-02-27 00:35:13 +01:00
Wuzzy a52f853853 Refactor and fix bad digging times framework 2017-02-27 00:29:56 +01:00
Wuzzy 307ec02744 Kinda fix shearsy/handy/swordy 2017-02-26 22:58:29 +01:00
Wuzzy b05c56bcd3 Add digging time support for shears/swords/hand 2017-02-26 20:50:02 +01:00
Wuzzy a4a6ec9b06 Write comment explaining mcl_autogroup magic 2017-02-26 19:38:40 +01:00
Wuzzy 151c1e62ba Tools to mcl_tools, way more efficient digging time definitions 2017-02-26 18:44:48 +01:00
Wuzzy 4ecef7b411 First steps to implement MC-like digging times
This involves MASSIVE hacks around the digging system in Minetest.
Implemented so far: Hardness, nodes in mcl_core, digging for nodes
diggable by pickaxe, shovel, axe.
Not implemented: Nodes diggable by hand alone (except insta-dig),
shears and sword.
2017-02-25 16:19:24 +01:00
Wuzzy b5dcd46193 Remove ignore node from solid node group
So mobs don't spawn on ignore...  xD
2017-02-24 02:51:50 +01:00
Wuzzy 3696ee3761 Organize mods into modpacks for better overview 2017-02-16 01:45:21 +01:00