Commands/experience

Adds or removes player experience.

Syntax

 * Java Edition


 * Bedrock Edition

Arguments

 * (in  mode)
 * Specifies the amount of experience points or levels to give to the player. Negative values remove experience instead of adding them.


 * (in  mode)
 * Specifies the amount of experience points or levels to be set to the player.


 * Specifies the amount of experience points or levels to be added to the player. This amount may represent either an amount of points or an amount of levels.
 * Specifies the amount of experience points or levels to be added to the player. This amount may represent either an amount of points or an amount of levels.

If an  is added to the end, adds levels. Negative values remove experience instead of adding them.
 * If the amount is expressed in points, it must be between 0 and 2,147,483,647 (inclusive, without the commas).
 * If the amount is expressed in levels, it must be between -2,147,483,648 and 2,147,483,647 (inclusive, without the commas).
 * If the amount is expressed in levels, it must be between -2,147,483,648 and 2,147,483,647 (inclusive, without the commas).


 * (in  and   mode)
 * Specifies the target of the command. $$, if not specified, defaults to the command's executor.
 * Specifies the target of the command. ⇭⇭⇭, if not specified, defaults to the command's executor.


 * (in  mode)
 * Specifies the target of the command.

Examples

 * To display Steve's current level:
 * To give 7 experience to yourself:  or
 * To give 3 levels to Alice:  or
 * To remove all levels from all players:  or   or

History
Befehl/experience Команды консоли/experience Команди консолі/experience 命令/experience คำสั่ง/experience