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

Armor durability is changed when swapping on creative

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • 23w51a
    • 1.20.2, 23w45a
    • None
    • Community Consensus
    • Creative
    • Items
    • Important
    • Platform

      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.

            timurn [Mojang] Timur Nazarov
            NobelD NobelD
            Votes:
            3 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: