mojira.dev
MC-169296

multiple equipment with mending

Noticed this happening since 1.14, dont know if its happening in earlier versions as well
When you have mending on both your armor and the tool you are holding, sometimes the gained experience doesnt repair any of these but just levels you up. If i remove my armor, my mending tool on my main hand gets repaired correctly with the gained experience. but if i have 2 items on both my main hand and offhand, both of them with mending, sometimes they get repaired correctly and sometimes they dont.

Pretty much happens the same wherever you get the gained exp, killing mobs, fishing, mining, or smelting.

Linked issues

Comments 5

Duplicate of MC-92889. This is intended. If an item with mending has full durability, the XP may get added to your XP bar instead.

i understand that but even when my items arent at full durability, exp just goes to my bar and doesnt repair my items.

Do you mean when none of your items are at full durability? The way mending works, if you have 2 pieces with mending, and 1 is full, there is a 50% chance that the full one is selected for repair (even if there is another that is not full). When this happens, the EXP will go into your bar, even if you have other equipment that needs repair.

ok but the way it works doesnt make sense, why does my exp goes to my bar even if im wearing/holding equipment with mending? this way i need to take off my armor so the tool im holding gets repaired with exp. At least put in an option for it.

The way your EXP gets allocated with mending is as follows:

  1. Select a random equipped item with mending

  2. If the item does not have full durability, increase it

  3. If the item has full durability, add the EXP to the player

The developers have indicated this works as intended. That's all I can say about that.

theahmex

(Unassigned)

Unconfirmed

1.15.1

Retrieved