mojira.dev
MCPE-26094

Mending fix & gaining XP at the same time

I enchanted my sword and my pick with Mending. The mending on my sword seems working like how it supposed to be, fix the sword then give me xp. But for some reason, when I hold my pickaxe instead, both its durability and my xp bar increase.

Comments 14

You get XP for killing mobs no matter what tool you are using.

You get XP for killing mobs no matter what tool you are using.

I thought it has to fix completely the Mending Tool first THEN increase the XP bar?

I thought it has to fix completely the Mending Tool first THEN increase the XP bar?

Oh, sorry, misunderstood the report. So you are saying that collecting XP while holding a diamond pickaxe increases both your XP level and the durability of your pickaxe? I just tried to reproduce this and it worked just fine for me; the pickaxe repaired and I didn't get any extra XP.

4 more comments

Okay, my mistake. I didn't realize that on single orbs, it randomly went to my pick and my XP bar. I thought it has to act like in Java Edition?

Well, it could be me who misunderstands. I remember clearly from the Console Edition that if I threw Potions o'Enchanting on the floor while holding a tool with Mending, I would only see the animation (and change to the item's durability) every few orbs collected. For other orbs, I'd see my XP bar increase. So it seemed to be a chance of getting a Mending effect on each orb.

Based on some forum threads, I think the way it works is that if you are holding or wearing a Mending-enchanted item, when an XP orb is collected the game will choose a held or worn item at random to apply the XP to. If that randomly-chosen item is not currently damaged, then the XP will instead go to your XP bar.

So say you are holding your pick (80% durability remaining), wearing chest armor (100%), and have a shovel (70%) in your hotbar but not currently held. All have Mending. You gather an XP orb. The game chooses with 50% chance either the pick or your chest armor - the shovel does not count because it is not held or worn - and tries to apply the XP orb. If the armor is chosen, it's already at 100% so the XP can't be applied there and it goes to your character XP bar instead.

If the pick is chosen, you see the little animation (or you would in console edition anyhow) and the pick gets some mending.

Well, it could be me who misunderstands. I remember clearly from the Console Edition that if I threw Potions o'Enchanting on the floor while holding a tool with Mending, I would only see the animation (and change to the item's durability) every few orbs collected. For other orbs, I'd see my XP bar increase. So it seemed to be a chance of getting a Mending effect on each orb.

Based on some forum threads, I think the way it works is that if you are holding or wearing a Mending-enchanted item, when an XP orb is collected the game will choose a held or worn item at random to apply the XP to. If that randomly-chosen item is not currently damaged, then the XP will instead go to your XP bar.

So say you are holding your pick (80% durability remaining), wearing chest armor (100%), and have a shovel (70%) in your hotbar but not currently held. All have Mending. You gather an XP orb. The game chooses with 50% chance either the pick or your chest armor - the shovel does not count because it is not held or worn - and tries to apply the XP orb. If the armor is chosen, it's already at 100% so the XP can't be applied there and it goes to your character XP bar instead.

If the pick is chosen, you see the little animation (or you would in console edition anyhow) and the pick gets some mending.

Cleaning up old tickets: This ticket has not been updated recently (1 year+) so is being closed as Cannot Reproduce. If you feel this is still a valid issue then please comment, or create a new ticket following the Issue Guidelines.

Quick Links:
📓 Issue Guidelines – 💬 Community Support – 📧 Feedback – 📖 Game Wiki

Cleaning up old tickets: This ticket has not been updated recently (1 year+) so is being closed as Cannot Reproduce. If you feel this is still a valid issue then please comment, or create a new ticket following the Issue Guidelines.

Quick Links:
📓 Issue Guidelines – 💬 Community Support – 📧 Feedback – 📖 Game Wiki

Glahera Matebi

(Unassigned)

Unconfirmed

Windows

1.1.5.0

Retrieved