mojira.dev
MC-271678

damage_item enchantment entity effect doesn't break items

The damage_item entity effect in enchantments doesn't break the item when the durability reaches 0.

How to reproduce:
I've attached a datapack that adds a test:damage_armor enchantment. This enchantment uses the minecraft:tick enchantment component to apply the damage_item entity effect every tick.

1. Open a world with the attached datapack
2. Enchant any piece of armor with the test:damage_armor enchantment

/enchant @s test:damage_armor

3. Equip the armor

4. Wait for the durability to reach 0
5. ❌ Note that the armor doesn't break, and the durability stays as 0.

Linked issues

Attachments

Comments 1

jacobsjo

slicedlime

Community Consensus

Platform

Important

Commands, Data Packs, Enchantments

24w18a

24w20a

Retrieved