The bug
With one of the newest java snapshots, The mending enchantment has been updated with the prioritizing of the tool of lower durability as the "tool of need" for the XP orbs to mend (MC-92889).
How to reproduce
Get one tool and full armor with mending.
Damage the tool until its almost broken. (Armor Must be fully repaired in order for this to happen!)
Summon some XP orbs.
Equip your fully repaired armor.
Hold the tool.
Set your gamemode to survival and walk towards those orbs.
→ ❌ The XP bar get's filled up even though your tools and armor are almost broken.
Linked issues
clones 1
is duplicated by 27
Attachments
Comments 37
I'm a bit confused because I just repaired all my armor and tools in my skeleton farm yesterday in 1.16.1 and it was working fine. I used the following procedure:
Unequip all my armor.
Equip one piece of armor, make my hand empty, and punch skeletons until that piece is fixed. (All the XP went to that one piece.)
Remove the previous armor piece and equip another one. Repeat until all armor is repaired.
Remove the final armor piece.
Equip a tool or weapon. Use it to punch or attack skeletons until that piece is fixed. (Again, all the XP went to that one piece.)
One by one, equip each other tool or weapon and repeat.
There is another report of this, MCPE-88606, for 1.16.1. The creator is asking us to close it as a duplicate of this one. Before I do, I need to understand exactly what the issue is. Does the procedure I used not work correctly for everybody? Is there an alternate procedure that is supposed to work, but doesn't? I understand that there was a change to how it works in Java 1.16, and that complicates the issue. The original report couldn't have been addressing that parity issue, but how does it affect what should be done with this report now?
You need to wear that repaired armor. The XP bar then gets incorrectly filled up whilst repairing. Java had this but then got this changed, i will attach a video.
MCPE-88606 is not the same issue. The description there indicates that that the user is expecting XP to go to any tools with the mending enchant anywhere in the inventory or hotbar. It has never worked that way, either in Java or Bedrock.
This report is valid and properly reports a vanilla parity issue. The developers haven't explicitly said they intend to fix it yet, but I don't see any reason they wouldn't.
To clarify the difference between Bedrock and Java (as changed by MC-92889), it is a change in what happens when the game finds that the gear item it selected to receive the XP is already fully repaired. The old behavior (still used in Bedrock) is to add that XP to the XP bar. The new behavior (used in Java) is to select another gear item and try again, only sending it to the XP bar after all the gear has been repaired.
Note that there is no change to which items are considered eligible to receive XP. They were and still are the items being held or worn that have the Mending enchantment. This means that any unequipped gear in your inventory is not eligible for XP repairs. I believe this is by design, because it makes it possible, by removing your armor and emptying your hand, to add XP to your bar even though you have lots of Mending gear that could be repaired. If all your Mending gear were always eligible and you happened to have lots of it, you couldn't add XP to your bar until everything was repaired, and that would be inconvenient if what you need at the moment is enough XP to enchant something.
I think the "1.16.40" one isn't supposed to be there. I've reported it.
It's not unusual that the fix isn't in the 1.16.40 Hotfix release. It was only just fixed a short time ago in the Beta. The fix has to go through a certain amount of testing before it's included in the general release. The testing may not be complete yet, or maybe it identified a problem with the fix. If that happens, a new fix has to be applied to the beta and it has to go through testing again before it can be promoted to general release.
The regression of this bug is tracked at MCPE-120119.
Original description:
When using mending, it only repairs tool sometimes, which is very rarely compared to 1.14.60
Steps to reproduce this bug:
1. Enchant a tool with mending
2. Find and collect XP
Observed results: it only repairs the tool rarely, sometimes causing mending to not work at all.
Expected results: As MC-92889 was fixed for the Java version, Bedrock should also prioritise repairing tools until the tool has been repaired.