Mineclonia/mods/ITEMS/mcl_enchanting
Elias Åström 1c6d3c2fea Do not include unnecessary tool_capabilities
This commit makes enchanted tools which have no use for
tool_capabilities to not include it in their metadata.  It does this by
not including tool_capabilities in the metadata of an enchanted tool if
at least one of two cases is true:

(1) The tool is not enchanted with unbreaking or efficiency
(2) The tool does not have tool_capabilities defined in its definition

The first case covers situations like having a pickaxe only being
enchanted with silk_touch.  The second case covers situations like a
piece of armor being enchanted with unbreaking.
2021-04-18 12:45:11 +02:00
..
locale Translate mcl_enchanting to Russian 2021-02-27 01:48:22 +04:00
models Move mcl_enchanting to ITEMS 2020-12-14 14:11:59 +01:00
sounds Give credit for the enchanting sounds (Closes #921) 2021-01-05 17:27:38 +01:00
textures Move mcl_enchanting to ITEMS 2020-12-14 14:11:59 +01:00
enchantments.lua Do not include unnecessary tool_capabilities 2021-04-18 12:45:11 +02:00
engine.lua Do not include unnecessary tool_capabilities 2021-04-18 12:45:11 +02:00
groupcaps.lua Do not include unnecessary tool_capabilities 2021-04-18 12:45:11 +02:00
init.lua Update the groupcaps of all enchanted tools 2021-04-16 22:34:48 +02:00
mod.conf Move mcl_enchanting to ITEMS 2020-12-14 14:11:59 +01:00
roman_numerals.lua Move mcl_enchanting to ITEMS 2020-12-14 14:11:59 +01:00