How to set a player's XP level in Minecraft
Type /experience set Steve 0 levels in chat as an operator to reset Steve to level 0. add gives more and query shows the current level.
experience
Adds, sets or shows experience points or levels for players.
/experience <add|set|query> <targets> [<amount>] [levels|points] Examples
/experience add @p 30 levels Gives the nearest player 30 levels.
/xp set Steve 0 levels Resets Steve to level 0 using the short alias.
/experience query Steve levels Shows Steve's current level.
Arguments
add|set|queryRequired- Change, overwrite or read the experience.
targetsRequired- Player name or selector.
querytakes a single player. amountOptional- Number of points or levels. Not used with
query. levels|pointsOptional- Unit to use. Defaults to points.
What it does
add and set change experience by points (the default) or by levels; a negative number with add removes experience. query shows how many points or levels a player has, which you can store in a score with execute store. set ... points cannot go past the amount needed for the player's current level, so set levels first.
Good to know
- Needs operator permission level 2.
xpis an alias and works the same way.
Run it on your server
On a SLASHPLAY server, type it in the Console tab without the leading slash; in game, operators type it in chat with the slash. New to this? Start a Minecraft server first.
Your own
Minecraft server.
From $0.03 an hour, only while it runs. New accounts get 6 free tokens.