Why am I no longer getting xp in minecraft?

So
9

I kill mobs but don't get any xp

an

Probably one of your armor pieces, or the tool you have in hand, has mending. This will use all the XP you collect to repair the armor / tools.

Sn

I would even tap all armor, weapons and tools if you don't get any XP at all.

an

Nope, as far as I know, one is enough. One alone draws all the XP.

If you have mending on several parts, the XP is only distributed randomly to the parts.

The player only gets XP again as soon as every part is repaired. Or with one as soon as it is repaired.

an

At least that's my experience. Of course, that can also be deceptive, even if I'm very sure about it.

Hu

You probably have "mending" on a tool on a tool or piece of armor. These "suck up" the XP automatically and repair themselves with it, even if you don't have them in your hand. It is enough if they are in the inventory. If you want to collect XP, first throw the tool / armor out of your inventory. If you don't have any repairs on any tools / armor, then it seems to be a bug that prevents the mobs from dropping experience

an

Apparently you are right, if you have the armor on, then it is split between armor and XP bar. However, if you have the armor or a tool in hand, the XP goes completely into it.

At least according to Reddit, I haven't had time to test it yet.

But if you say that too, I'll trust you.

an

My comment has been removed so I'll write it again in a friendly way:

and repair yourself with it, even if you don't have it in your hand. It is enough if they are in the inventory. If you want to collect XP, first throw the tool / armor out of your inventory.

This claim is wrong.

A piece of armor / tool / weapon only absorbs the XP for repairing if the player has it on, has it in hand, or has it in the second hand.

The thing about "throwing it out of the inventory" is nonsense, it is enough e.g. Simply to take off the armor.

Hu

Then why are all my tools being quickly repaired? Is dad a bug or what?

an

That's a bug then, yes. You could report when you have the time.

Normally only what you hold in your hands or have on should be repaired.