1
0
Fork 0
Commit Graph

108 Commits (8f7182f1ea8bddf84f83ea0bea698b43153fb57d)

Author SHA1 Message Date
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 b47733507d Fix tools not taking wear when rightclicking
Added the API function mcl_autogroup.get_wear which is used to get the
tool wear for digging a node of a group.  This is used by mcl_tools to
compute the wear of shovels and shears when rightclicking to create
grass paths and carve pumpkins.
2021-03-18 11:35:29 +01:00
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
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
Elias Fleckenstein da606fa9d2 Add 3d wielded nodes (not functional until Right_Hand bone is added) 2021-02-24 12:58:30 +01:00
Elias Fleckenstein 9b349a1684 More flexible wield rotation determination 2021-02-18 09:28:12 +01:00
Elias Fleckenstein bb0e5af6d0 Fix crash when attempting to create grass path with efficiency shovel 2021-01-17 12:39:11 +01:00
Elias Fleckenstein 7a1e6246d6 Remove wield_image from all shovels 2021-01-08 14:40:02 +01:00
Elias Fleckenstein ab079d0c9b Fix missing enchantability of golden shovel 2021-01-02 12:11:16 +01:00
Elias Fleckenstein 883056bbc2 Fix #16 2021-01-02 11:15:32 +01:00
Wuzzy fd53198c9a No enchant for shears 2020-12-19 16:29:55 +01:00
kay27 5da02bb8cc Merge https://git.minetest.land/EliasFleckenstein03/MineClone2 2020-12-13 03:00:04 +04:00
Wuzzy b163d17a53 Add shears cut sound 2020-12-06 01:21:02 +01:00
Elias Fleckenstein ed738da016 Added Enchanting Table 2020-11-25 12:47:27 +01:00
Wuzzy 6706104c3a Remove enchantment table 2020-10-23 23:00:54 +02:00
kay27 a127136c60 Add Enchanting from Crafter-minetest by Oil_boi 2020-10-19 16:38:21 +04:00
kay27 ba51686e6c Russian translation 2020-07-20 00:11:13 +00:00
Wuzzy c106a62979 Use minetest.is_creative_enabled 2020-07-10 16:45:40 +02:00
Rocher Laurent 4957bd1118 Translate In French 2020-05-03 22:39:07 +02:00
Wuzzy 71c9d20fff Use larger wield scale for tools 2020-04-08 04:07:16 +02:00
Wuzzy c5e4ec5e27 Use ephemeral sounds 2020-04-07 00:55:45 +02:00
Wuzzy e4fb7ae533 Add punch_attack_uses to weapons 2020-02-19 15:53:51 +01:00
Wuzzy 641921f4c7 Add tool stats in help 2020-02-17 16:19:17 +01:00
wuniversales 15481cb24d Add Spanish translation 2020-02-04 21:43:50 +01:00
Wuzzy 8533ff0b75 Hoes and shovels now respect protection
That is, their special action do so.
2019-03-27 13:07:33 +01:00
Wuzzy 967905264d Make many help texts translatable and fix bugs 2019-03-25 12:05:57 +01:00
Wuzzy c5db9987c3 Fix various typos in German translation 2019-03-25 11:01:52 +01:00
Wuzzy 9385458632 German translation: mcl_signs to xpanes 2019-03-16 00:07:44 +01:00
Wuzzy 5aeb4aea74 Add translation templates for most mods
Using the findtext.lua script
2019-03-13 23:40:59 +01:00
Wuzzy f9b557c2ba New translation system, part 9: Items, part 5 2019-03-08 00:46:35 +01:00
Wuzzy 1044e96909 Add tool groups (pickaxe, shovel, ...) 2019-02-25 17:46:49 +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 e97fe05acc Specify the repair material of tools and armor 2018-02-02 02:33:10 +01:00
Wuzzy 16bb9b8901 Localize various unneeded global variables 2018-01-26 22:37:42 +01:00
Wuzzy da8729a7a1 Increase pointing range in Creative Mode 2017-12-08 14:00:44 +01:00
Wuzzy 8826cafa7c Allow to carve pumpkins 2017-11-23 00:20:49 +01:00
Wuzzy 72f5591400 Add dry-colored grass/fern variants 2017-11-14 23:44:53 +01:00
Wuzzy e5a34367c9 Use new Minetest settings API syntax for most mods 2017-08-09 16:17:00 +02:00
Wuzzy 742dac6fd3 Update the shears help 2017-08-03 03:35:51 +02:00
Wuzzy d3e878c457 Update wieldhand texture 2017-07-21 20:46:48 +02:00
Wuzzy e65029394f Replace most textures with Pixel Perfection
- Using the converter script
- A bunch of textures are still missing
2017-07-20 20:20:45 +02:00
Wuzzy 97b0d6f85c Fix shovel able to make grass path from below 2017-07-08 18:11:27 +02:00
Wuzzy f49cdfe0ef Fix grass path creation 2017-06-12 17:37:21 +02:00
Wuzzy 5d494abf81 Tweak wieldhand 2017-05-30 16:20:48 +02:00
Wuzzy 6edd418c7f Move wieldhand.png to mcl_tools 2017-05-30 16:04:47 +02:00
Wuzzy 6eed06f7fc Add equivalence code for the snowy dirt blocks 2017-04-01 06:51:55 +02:00
Wuzzy 712f295edc Reveal a few basic help entries by default 2017-03-20 16:38:16 +01:00
Wuzzy a1842f6033 Add custom hand help 2017-03-12 02:24:51 +01:00
Wuzzy 02d062a02b Add help texts for the basic tools 2017-03-12 01:55:18 +01:00
Wuzzy 7dce9bf429 Fix shovels being unable to make grass paths 2017-03-02 17:57:18 +01:00
Wuzzy 9cb2f5b392 Make more items respect the node's on_rightclick
- Bone meal
- Fishing rod
- Seeds
- Hopper
- Nether wart
- Sponge
- Bow
- Shovel
2017-03-02 16:09:13 +01:00
Wuzzy 74c38b112a Increase pointing range back to 4 2017-03-01 21:13:51 +01:00
Wuzzy c555d7c60f Fix nodes not breakable in creative 2017-02-28 00:14:31 +01:00
Wuzzy d8eb91f988 Fix tool-related crafting recipes 2017-02-27 20:25:56 +01:00
Wuzzy 3efad3da86 Re-introduce tool durabilities again 2017-02-27 20:07:11 +01:00
Wuzzy 6b3db0ae72 Eliminate crumbly, cracky, snappy and choppy fully 2017-02-27 18:53:17 +01:00
Wuzzy c668d98c87 Add tool aliases 2017-02-26 18:57:57 +01:00
Wuzzy 151c1e62ba Tools to mcl_tools, way more efficient digging time definitions 2017-02-26 18:44:48 +01:00