To give yourself five XP levels, use /experience add @s 5 levels in Java Edition or /xp 5L @s in Bedrock Edition. Commands must be enabled, and you need permission to use them. In Bedrock single-player, enabling cheats permanently disables achievements for that world.
Use the command for your edition
Java and Bedrock use different command syntax. In both examples, @s targets the player running the command.
| # | Preview | Product | Price | |
|---|---|---|---|---|
| 1 |
|
Minecraft | Java & Bedrock Deluxe Collection | Windows Digital Code | $39.99 | Buy on Amazon |
| 2 |
|
Minecraft | Java & Bedrock Ultimate Collection | Windows Digital Code | $49.99 | Buy on Amazon |
| 3 |
|
Minecraft | Standard Edition | XBOX Digital Code | $19.99 | Buy on Amazon |
| 4 |
|
Minecraft | $6.99 | Buy on Amazon |
| 5 |
|
Minecraft - Bedrock Edition PS4 | $42.98 | Buy on Amazon |
As an Amazon Associate I earn from qualifying purchases.
| Edition | Add five levels | Set level 30 |
|---|---|---|
| Java Edition | /experience add @s 5 levels |
/experience set @s 30 levels |
| Bedrock Edition | /xp 5L @s |
Not stated in the documented Bedrock syntax; its /xp form adds or removes experience. |
Java Edition: add, set, or check XP
Java accepts /experience, with /xp as an alias. The command distinguishes raw experience points from levels, so include the unit in the command. The current Java command reference corroborates the syntax; Mojang’s snapshot notes document the command structure historically. If your installed version suggests different syntax, follow its in-game command suggestions.
- Add five levels:
/experience add @s 5 levels - Add 100 raw experience points:
/experience add @s 100 points - Set your level to 30:
/experience set @s 30 levels - Check your level:
/experience query @s levels
Java command syntax: Java Edition experience command reference; historical documentation: Mojang’s snapshot notes.
#1 Best Overall
- DELUXE COLLECTION — Includes Minecraft: Java & Bedrock Edition, three Bedrock add-ons, three exclusive Character Creator items, and 700 Minecoins.
- CREATE YOUR WORLD — Build whatever you imagine in an infinite world that’s unique in every playthrough.
- EXPLORE AND CRAFT — Discover biomes, resources, and mobs, then craft your way through a sandbox world filled with surprises.
- SURVIVE THE ADVENTURE — Face mysterious foes, travel across exciting landscapes, and venture into perilous dimensions.
- PLAY TOGETHER — Play cross-platform with friends in Bedrock Edition on console, mobile, and PC, or join community servers in Java Edition on PC, Mac, and Linux. Online console multiplayer requires a platform-specific subscription (sold separately).
Bedrock Edition: use L to specify levels
Bedrock’s /xp command interprets a number followed by L as levels. Without the suffix, the amount means experience points. For example, /xp 5L @s adds five levels; /xp 100 @s adds 100 points. Microsoft Learn describes the command as one that “Adds or removes player experience.”
The documented syntax accepts a player name or target selector: /xp <amount: int> [player: target] for points, or /xp <amount: int>L [player: target] for levels. See Microsoft Learn’s Bedrock /xp command documentation.
The Tool Desk
Outbyte PC Repair FREERepair Windows errors before they cause bigger problemsFix Now →Outbyte Driver Updater FREEScan for outdated or missing drivers - takes under a minuteDriver Scan →Rank #2
- ULTIMATE COLLECTION — Includes Minecraft: Java & Bedrock Edition, five Bedrock add-ons, five exclusive Character Creator items, and 1000 Minecoins.
- CREATE YOUR WORLD — Build whatever you imagine in an infinite world that’s unique in every playthrough.
- EXPLORE AND CRAFT — Discover biomes, resources, and mobs, then craft your way through a sandbox world filled with surprises.
- SURVIVE THE ADVENTURE — Face mysterious foes, travel across exciting landscapes, and venture into perilous dimensions.
- PLAY TOGETHER — Play cross-platform with friends in Bedrock Edition on console, mobile, and PC, or join community servers in Java Edition on PC, Mac, and Linux. Online console multiplayer requires a platform-specific subscription (sold separately).
Target another player
Replace @s with a player name or another suitable target selector. For example, in Java you can use /experience add Alex 5 levels; Bedrock’s syntax also accepts a player name or selector. On a multiplayer world, the command only works if your account has enough permission.
Enable commands and check permissions
Java single-player
Enable Allow Commands when creating the world, or later through World Options. Enter commands in chat with a leading slash.
Rank #3
- CREATE YOUR WORLD — Build whatever you imagine in an infinite world that is unique in every playthrough.
- EXPLORE AND CRAFT — Discover biomes, resources, and mobs, then craft your way through a sandbox world full of surprises.
- SURVIVAL ADVENTURES — Face mysterious foes, travel across varied landscapes, and venture into perilous dimensions.
- PLAY TOGETHER — Play solo or join friends in local split-screen and cross-platform play across console, mobile, and PC. Online multiplayer supports up to 8 players.
- COMMUNITY PLAY — Connect with players on community servers, or subscribe to Realms Plus (sold separately) to play with up to 10 friends on a private server.
Bedrock single-player
In the world settings, open the Game tab and turn on Allow Cheats. This permanently disables achievements for that world—even if you turn cheats off again later.
What’s actually slowing this PC down?
Pick the symptom - the matching free tool is one click away.
Multiplayer
Command access depends on permissions. A world or server owner can grant the necessary access; if you are a player on someone else’s server or Realm, ask its administrator. Mojang’s commands guide explains command entry and permissions.
Quick Recap
Best Value
- Play and share with friends on console, mobile and Windows 10
- discover community creations in the new in-game store
- access new mini games and game modes through servers
Rank #4
- Skins! We have biome settlers, city folk, town folk, and more!
- The Nether and all its inhabitants. Fight Ghasts and make friends with Pigmen
- Cross platform play for up to five players between Pocket Edition and Windows 10
- Revamped touch controls, controller support, and a controller mapping screen
- Enhanced Weather effects! Accumulating snow and more
If the XP command does not work
- Check your edition: Java uses
/experience(or its/xpalias) with units such aslevels; Bedrock uses/xpand anLsuffix for levels. - Check the unit: In Java, write
levelsorpoints. In Bedrock, addLdirectly after the amount when you mean levels. - Check the target: Use
@sfor yourself, or confirm the player name or selector is valid. - Check world settings and permissions: Commands must be enabled, and multiplayer users need adequate access.
Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.




