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:
Get a piece of damaged armor enchanted with Mending and equip it in creative mode:
/give @s netherite_chestplate[damage=592,enchantments={mending:1}]
Fly up and throw some Bottles o' Enchanting down
Quit flying and open your inventory, select a tab other than "Survival Inventory"
After you have finished collecting the XP orbs, check the damaged armor's durability
Reload the world
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.
Linked issues
Attachments
Comments 3
Thank you for your report!
After consideration, the issue is being closed as Won't Fix.
Please note that this is not the same as Working as Intended, as this bug report correctly describes behavior in the game that might not be the intended or desirable behavior, but it will not be fixed right now. Sometimes, this is because the issue reported is minor and/or impossible to change without large architectural changes to the code base.
Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support (Technical Issues) – 📧 Microsoft Support (Account Issues)
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki
Can confirm.