mojira.dev
MC-276238

Enchantment Damage Effects do not apply to Armor

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:

  1. Create a Custom Enchantment that can be applied to armor and has a modifier for the minecraft:damage effect

  2. Apply the enchantment to armor, wear it, and then attack a mob.

  3. 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

Have you created any data packs with the enchantment? If so, please provide the used data pack.

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

GoldSlimeling91

(Unassigned)

Unconfirmed

(Unassigned)

24w35a, 24w36a

Retrieved