/experience

Cheats / op 2Java 26.3

Adds, sets or queries players' experience points and levels. Its basic form is /experience add <target> <amount>; it has 8 syntax forms and 2 arguments. Permission: Cheats / op 2.

Who can use it
Cheats / op 2
Syntax forms
8
Arguments
2
Same as
/xp

/experience syntax

Game data

Every form the game accepts. Words in <angle brackets> are arguments you fill in; everything else is typed as is.

/experience add <target> <amount>
/experience add <target> <amount> levels
/experience add <target> <amount> points
/experience query <target> levels
/experience query <target> points
/experience set <target> <amount>
/experience set <target> <amount> levels
/experience set <target> <amount> points

/experience examples

Ready-to-paste examples (cheats on). @s is you, @p the nearest player, @a everyone, @e every entity.

/experience add @s 30 levels
Gives you 30 levels.
/experience query @s points
Shows how many XP points you have.

/experience arguments

What each argument expects, with the limits the game enforces.

/experience arguments
ArgumentExpectsLimits
<target>Target selector or player name (@s, @p, @a, @e, @r)players only · one or more
<amount>Whole number—

Related commands

Data: Minecraft Java Edition 26.3 game files. How we source this

Adds, sets or queries players' experience points and levels. It has 8 syntax forms and can be run by: Cheats / op 2.

See Also

🔍

Help us maintain accuracy! If you notice incorrect stats, missing data, or any issues, your feedback directly improves the quality of our data for the entire community.

Report an Issue

/experience FAQ (Java 26.3)

What does /experience do in Minecraft?

Adds, sets or queries players' experience points and levels.

What is the syntax of /experience?

The basic form is /experience add <target> <amount>. All forms are listed above.

What is an example of /experience?

/experience add @s 30 levels — Gives you 30 levels.

Do you need cheats for /experience?

Yes: Cheats / op 2. In singleplayer turn on Allow Cheats (or open to LAN with cheats).

Is there a shorter name for /experience?

Yes, /xp works the same way.