Commit Graph

63 Commits

Author SHA1 Message Date
Elias Åström 5d3514880a Move data from deprecated files to mod.conf
Move data from deprecated files (depends.txt and description.txt) into
fields in mod.conf for all mods.
2021-05-16 13:44:04 +02:00
Elias Åström 029ebaa388 Rename "tool_multiplier" to "speed" for tools 2021-04-16 22:45:22 +02:00
Elias Åström 9c961394ec Automatically assign nodes to creative_breakable
If they belong to any digging group.
2021-04-16 22:34:53 +02:00
Elias Åström 9bb39dfba6 Rename _mcl_autogroup_groupcaps to _mcl_diggroups 2021-04-16 22:34:26 +02:00
Elias Åström ccd53e7f10 Force tools to include levels in their diggroups 2021-04-16 22:34:18 +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 c92f0e5ce3 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-04-16 22:33:07 +02:00
Elias Åström ffbbe91bc5 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-04-16 22:31:57 +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
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