When creating custom enchantments, the minecraft:damage effect type does not apply at all if the item that is enchanted is being worn as a piece of Armor
Steps to Reproduce:
Create a Custom Enchantment that can be applied to armor and has a modifier for the minecraft:damage effect
Apply the enchantment to armor, wear it, and then attack a mob.
See that it doesn't change the damage dealt at all
Expected: The damage should change accordingly to what the enchantment changes, like how it does on an item that is held
Linked issues
Attachments
Comments 5
Yes, I reported this bug due to one of my custom enchantments not functioning
A datapack containing the enchantment has been added
The enchantment can be applied to leggings and is meant to increase the damage the user deals whilst moving, which doesn't function
Would MC-272006 describe your issue? It outlines minecraft:damage
not applying properly in some slots. In your case, that would be the armor slots.
actually yes MC-272006 describes the issue pretty well, this one can be marked as a duplicate then
Have you created any data packs with the enchantment? If so, please provide the used data pack.