Skip to main content

/experience

Adds, sets, or queries experience points or levels for one or more players. Identical to /xp.

Category
Player
Permission Level
Game Master
Version Added
1.13

Syntax

/experience <add|set|query> <targets> <amount> [levels|points]

Parameters

NameTypeRequiredDescription
actionliteralRequiredThe action to perform: add, set, or query.
targetsentityRequiredThe player(s) to modify.
amountintegerRequiredThe amount of experience. Omitted when action is query.
unitliteralOptionalWhether the amount refers to levels or points. Defaults to points.

Examples

/experience add @s 10 levels

Adds 10 experience levels to yourself.

/experience set @p 0 levels

Resets the nearest player's level to 0.

/experience query @s points

Displays your current experience points within the current level.

Common Mistakes

Notes

Introduced in 1.13 as the expanded version of /xp. Both commands remain available and behave identically.

Related Commands

Need a Minecraft server?

Try these commands on Astroworld or host your own server.

Try Astroworld Hosting