Mojira Archive
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.

Fixed

jacobsjo

[Mojang] slicedlime

2024-05-06, 02:46 PM

2024-05-15, 02:22 PM

2024-05-15, 08:30 AM

2

1

Community Consensus

Important

Platform

Commands, Data Packs, Enchantments

24w18a

24w20a