Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-276596

Damageable horse armor with "damage_on_hurt" enabled doesn't take damage when the horse wearing it is hurt

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • 24w40a
    • 24w37a
    • None
    • Confirmed
    • Commands, Items
    • Normal
    • Platform

      If a horse is wearing horse armor with the max_damage component set to any number and the damage_on_hurt tag from the equippable component set to true, the item doesn't take damage when the horse is hurt.

      How to reproduce:

      1. Execute the following command:
        /give @s minecraft:diamond_horse_armor[minecraft:equippable={allowed_entities:"minecraft:horse",slot:"body",model:"minecraft:diamond",equip_sound:"minecraft:item.armor.equip_diamond",damage_on_hurt:true},minecraft:max_damage=5]
      2. Summon a horse and tame it.
      3. Equip the horse armor you were given onto the horse.
      4. Punch the horse.

      Expected result:

      Since equippable.damage_on_hurt is set to true, the horse armor would take damage when the horse wearing it is hurt.

      Observed result:

      The horse armor's durability does not deplete, despite the value of the equippable.damage_on_hurt tag.

            Dat12 [Mojang] etanaratsastaja
            Prototype421 Prototype421
            Votes:
            2 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: