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

Durability of equipped armor enchanted with Mending does not get updated in creative mode if the inventory is open while collecting XP

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • None
    • 1.21
    • None
    • Community Consensus
    • Creative
    • UI

      The durability of equipped armor enchanted with Mending does not get updated in creative mode if the inventory is open while collecting XP, unless the opened tab is "Survival Inventory", until the world is reloaded.

      Steps to reproduce:

      1. Get a piece of damaged armor enchanted with Mending and equip it in creative mode:
        /give @s netherite_chestplate[damage=592,enchantments={mending:1}]
      2. Fly up and throw some Bottles o' Enchanting down
      3. Quit flying and open your inventory, select a tab other than "Survival Inventory"
      4. After you have finished collecting the XP orbs, check the damaged armor's durability
      5. Reload the world
      6. Check the damaged armor's durability

      Observed result:
      The armor stays at 0 durability until the world is reloaded.

      Expected result:
      The armor is repaired before the world is reloaded.

      Notes:
      /data get entity @s Inventory shows the correct amount of durability the armor has, however unequipping that piece of armor resets the durability to what it was before.

            Unassigned Unassigned
            Jarl-Penguin [Mod] Jarl-Penguin
            Votes:
            2 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: