Elias Åström 573b1dc44b 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 11:40:43 +02:00
..
2021-04-16 11:40:44 +00:00
2021-03-29 22:57:05 +02:00
2021-03-15 00:42:34 +01:00
2021-03-19 17:25:40 +00:00
2021-04-14 22:06:03 +02:00
2021-04-10 20:58:34 +02:00
2021-04-15 23:41:34 +02:00
2021-04-15 23:41:34 +02:00
2021-04-17 19:34:23 +02:00
2021-03-11 23:09:53 +01:00
2021-04-15 23:41:34 +02:00
2021-04-15 23:41:34 +02:00
2021-04-15 23:41:34 +02:00
2021-03-07 00:42:34 +01:00
2021-04-15 23:41:34 +02:00
2021-04-15 23:41:34 +02:00
2021-04-15 23:41:34 +02:00
2021-04-15 23:41:34 +02:00
2021-04-16 13:35:03 +02:00
2021-04-13 09:59:51 +02:00
2021-04-16 13:35:03 +02:00
2021-04-16 13:35:03 +02:00