Mojira Archive
MC-278283

damage_on_hurt is working wrong

What I expected:
Since the item has the specified minecraft:max_damage component, it would break if the entity it was worn on took damage
What happened:
The item is not damaged when the entity is wounded

Steps to reproduce:

  1. Give an item that has no durability by default with the minecraft:max_damage and minecraft:equippable components:
    /give @s minecraft:diamond[minecraft:equippable={slot:feet,damage_on_hurt:1b},minecraft:max_damage=91,minecraft:max_stack_size=1]
    
  2. Equip this item
  3. Get damaged several times

Duplicate

JustJabka

2024-11-12, 07:16 PM

2024-11-13, 11:05 PM

2024-11-13, 11:05 PM

0

1

Unconfirmed

(Unassigned)

24w45a

-