mojira.dev
MC-92889

Mending doesn't always consume experience if the player wears items with mending that are already fully repaired

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

MC-99937 Mending Enchantment Distribution Resolved MC-112925 Enchantment Mending Resolved MC-116518 Not all XP goes towards mending something if something that is fully mended is in the inventory. Resolved MC-118010 Mending does not absorb every xp_orb when other items with mending equipped. Resolved MC-119148 Mending Bug Resolved

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.

It has already been fixed.

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

 

For the record, the wiki is not a valid source of information for what is intended or not.

Bedrock still has this issue. It also needs fixing in bedrock to be in parity with java. MCPE-80156

Jayceen Beaulieu

slicedlime

Confirmed

Normal

Items

Minecraft 15w45a, 1.15.1, 1.15.2 Pre-Release 1

20w06a

Retrieved