-
Bug
-
Resolution: Fixed
-
24w33a
-
None
-
Confirmed
-
Data Packs, Enchantments
-
Normal
-
Platform
I'm not sure if this is a bug, or just an incomplete feature, but I feel it is important to make the team aware of this, just in case.
The backstory: I wanted to make custom enchantments for wolf armor show up in the enchanting table, but when giving myself enchantable wolf armor, nothing shows up. The data component works for all non-enchantable items in vanilla that can be enchanted with books in survival.
Steps to recreate:
- Add the attached datapack (Enchantable test 24w33a.zip) to your world to add the archive:wolf_armor and archive:air_brake enchantments to wolf armor and elytra, respectively. They are defined by wolf_armor.json and air_brake.json
- run command
/give @p minecraft:elytra[enchantable={value:1}]
- run command
/give @p minecraft:wolf_armor[enchantable={value:1}]
- attempt to enchant both items in an enchanting table
Observed result:
Elytra can be enchanted with both vanilla and custom enchantments. No enchantments show up for the wolf armor, despite it being added to several enchantable item tags and having a functional custom enchant.
Expected result:
The expected outcome is that enchantments show up for both items, since the changelog states: "If present, and applicable enchantments are available, items with the component can be enchanted in an enchanting table."