The bug
When using experience orbs to repair tools, weapons or armor that have been enchanted with the 'Mending' enchantment, some of the experience will not be used to repair the items if the player wears (armor slots, main hand, and off hand) any items that have Mending on them and already have full durability. Instead, the experience will be added to the experience bar.
Original description
While playing in my survival world with mending on all of my armor an tools when I'm repairing my shovel with exp it repairs very slowly when I have my armor on and I noticed only about 15-25% of the xp I pick up goes to the shovel. What I think is happening is that the xp tries to go to the armor (when it is being worn) but fails so results going into the exp bar. This may be intentional as I know if an xp is worth more than the durability left to repair it will go into the experience bar but I'm not sure if it was intended to be like that when the Item is at full durability. If it is somehow an unintentional feature then I personally like it because it means it's harder to repair items if you are just running around on the surface killing mobs.
Linked issues
is duplicated by 18
relates to 2
Comments 9
"If multiple items have the enchantment, one will be chosen at random for each XP orb collected, and if the chosen item does not need repair, the XP will be added to the player's total as normal, rather than choosing another item to repair."
The XP should repair any tools/armor first and then go into the XP bar, that is not happening, the XP is going into the XP bar and the tools/armor are not getting repaired, this is the bug everyone is experiencing, so this bug is not resolved, and it needs to be fixed
Couldn't we make a vote about it? Because from what I've seen pretty much everyone would like to have repair as a priority, rather than going to the player's total experience.
This appears to have been intended behavior before, not a bug, but a recent video from Slicedlime indicates the behavior has been changed in snapshot 20w06a to now always prioritize repair.
https://youtu.be/GUZqS7vjP3Q?t=530
Bedrock still has this issue. It also needs fixing in bedrock to be in parity with java. MCPE-80156
@slicedlime It's changed! See https://minecraft.gamepedia.com/Mending
What you describe is intended, see here http://minecraft.gamepedia.com/Mending