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.
 * 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 set to the player.


 * 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).
 * Specifies the amount of experience points or levels to be added to the player.
 * Negative values remove experience instead of adding them.
 * Specifies the amount of experience points or levels to be added to the player.
 * Negative values remove experience instead of adding them.


 * (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.
 * Specifies the target of the command. ⇭⇭⇭⇭⇭, if not specified, defaults to the command's executor.


 * (in  mode)
 * Specifies the target of the command.
 * 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