🟢
Utility
/xp
Give or set experience points and levels for any player.
At a glance
Syntax
Syntax
/xp add <target> <amount> [points|levels]commandtargetcoordsvaluerequiredoptional
See it
What it does
Level Up!
Experience flows in
Anatomy
Every part, explained
- 1
CommandRequired/xp addUse 'add' to grant, 'set' to overwrite.
- 2
TargetRequired<target>Who gets the XP. @s is yourself.
- 3
AmountRequired<amount>How much to add or set.
- 4
UnitOptional[points|levels]Choose points or levels. Defaults to points.
Your turn
Try it yourself
Playground
5 tokens · press Enter to run
Copy & paste
Examples
/xp add @s 30 levelsEnough to enchant in one go.
/xp add @s 100 pointsA small top-up of raw XP.
/xp set @s 0 levelsReset a player back to zero.
Avoid these
Common mistakes
✕
/xp add @s 30✓
/xp add @s 30 levelsWithout a unit it adds points — say 'levels' if you mean levels.
✕
/xp add 30 levels @s✓
/xp add @s 30 levelsOrder is target, then amount, then unit.
Keep going