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

The durability of items enchanted with mending that are held in the offhand or worn in armor slots don't get updated when a GUI is open

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • Minecraft 1.14.1, 1.15.1, 20w51a, 21w03a, 1.16.5, 21w06a, 21w07a, 21w08b, 1.17, 1.17.1 Pre-release 1, 1.17.1, 1.18 Pre-release 6, 1.18.2, 1.19.2, 1.19.3, 1.20.1
    • None
    • Confirmed
    • UI

      The Bug:

      The durability of items enchanted with mending that are held in the offhand or worn in armor slots don't get updated when a GUI is open.

      My tool with mending was in my off-hand and I was disenchanting some of the fishing rods (that I got from my afk fish farm) with the grindstone, the tool didn't get updated until I closed the gui of the grindstone, so I disenchanted fishing rods more than I need to repair my tool.

      Steps to Reproduce:

      1. Place down a grindstone and obtain a sword with some enchantments on it by using the command provided below.
        /give @s minecraft:diamond_sword{Enchantments:[{id:"minecraft:sharpness",lvl:5}]}
      2. Hold any tool with low durability that's enchanted with mending in your offhand, for example, a wooden shovel by using the command provided below.
        /item replace entity @s weapon.offhand with minecraft:wooden_shovel{Damage:58,Enchantments:[{id:"minecraft:mending",lvl:1}]}
      3. Switch into survival mode, open the grindstone, and disenchant the diamond sword.
      4. Wait until you collect all of the experience orbs from disenchanting the sword.
      5. Close the grindstone GUI and watch the shovel held in your offhand closely as you do this.
      6. Take note as to whether or not the durability of items enchanted with mending held in the offhand only updates once the grindstone GUI is closed.

      Observed Behavior:

      The durability of items only updates once the GUI is closed.

      Expected Behavior:

      The durability of items would always update in the moment regardless of whether or not GUIs are open.

            Unassigned Unassigned
            YagiXx Yağız Aktaş
            Votes:
            9 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              CHK: