mojira.dev
MC-266589

Armor durability is changed when swapping on creative

In creative mode, when swapping a damaged armor piece with another piece of the same slot type in the hotbar, the equipped piece will clone their damage to the swapped piece.

To reproduce:

  1. Execute "/give @s minecraft:diamond_helmet{Damage:300}"

  2. Execute "/give @s minecraft:leather_helmet"

  3. First equip the leather helmet.

  4. Use the diamond helmet on the hotbar to swap it with the leather helmet.

  5. Execute "/data get entity @s SelectedItem" with the leather helmet in hand.

  6. The command shows that the leather helmet now has 300 damage, like the diamond one.

If equiped the damaged diamond helmet first and later the leather helmet, then the diamond one will have their damage reset to 0.

  • Dont matter the damage amount.

  • This only happens on creative mode.

  • This happens with every armor.

  • The two armor pieces needs to be for the same slot.

  • This only affects the durability and not any item data.

Linked issues

Attachments

Comments 2

Confirmed 1.20.2

also it seems to duplicate the helmet (although it is creative, not in survival not technically duplicating just feels like it)

Related to MC-259587

NobelD

Timur Nazarov

Community Consensus

Platform

Important

Items

1.20.2, 23w45a

23w51a

Retrieved