Question: how to subtract xp in minecraft?
Answer: If you specify levels or L after the amount (depending on your version of Minecraft), you will add experience levels. Otherwise, you will only add experience points. You can remove experience by entering a negative amount when adding experience to a player.