mojira.dev
MC-313541

Wolf armor is damaged even when `damage_on_hurt` in the `equippable` component is set to false

The Bug:

Wolf armor is damaged even when damage_on_hurt in the equippable component is set to false.

Armor worn by players and horses isn't damaged when this is set to false, therefore introducing an inconsistency.

Steps to Reproduce:

  1. Summon a wolf wearing wolf armor whose damage_on_hurt is set to false by using the command provided below.

    /summon minecraft:wolf ~ ~ ~3 {equipment:{body:{id:"minecraft:wolf_armor",components:{"minecraft:equippable":{slot:"body",asset_id:"minecraft:armadillo_scute",damage_on_hurt:false}}}}}
  2. Damage the wolf by using the command provided below.

    /damage @n[type=minecraft:wolf] 100
  3. Observe if the wolf armor breaks.

Observed Behavior:

Wolf armor is damaged even when damage_on_hurt in the equippable component is set to false.

Expected Behavior:

Wolf armor would not be damaged when damage_on_hurt in the equippable component is set to false.

Attachments

Comments 1

Avoma

(Unassigned)

Confirmed

Platform HC

Normal

Items

26.3, 26.4 Snapshot 10

Retrieved