Summary:
When repairing damaged Mending armor and tools at the same time with experience, some of the experience goes to the experience bar after the armor is fully repaired. If the experience is from a furnace, most of the experience goes to the experience bar.
Steps to Reproduce:
Run the following commands:
/give @s chainmail_helmet 1 1 /give @s chainmail_chestplate 1 1 /give @s chainmail_leggings 1 1 /give @s chainmail_boots 1 1 /give @s diamond_pickaxe 1 1000 /give @s experience_bottle 64
Enchant the armor and pickaxe with Mending
Equip the armor and switch to Survival mode
Throw the experience bottles a few blocks away from the player
Pick up the experience orbs while holding the pickaxe
Look at the experience bar
Observed Results:
Some of the experience goes to the experience bar.
Expected Results:
The experience shouldn't go to the experience bar until the armor and pickaxe are fully repaired.
Videos:
[media][media]
I think what going on is, an experience orb has more experience than needed to repair the mending armour piece it gets assigned to, and the remainder is split with the experience bar instead of other mending items,
and this is most obvious with the furnace xp because it is giving you much bigger experience orbs so it ends up splitting the majority of it to the experience bar
Expected Results:
extra experience prioritizes splitting with other mending items first when applicable