Skip to content
/craftcmd

Add Experience Levels

Give yourself or a player XP levels

⚠︎ Awaiting in-game verification for Java 26.2

Adds 10 XP levels to your inventory. Change 10 to any amount, or @s to another player (@p, @a, etc.).

/xp add @s 10L
14 characters

How to use

  1. Open chat (T on Java, / on Bedrock).
  2. Paste the command with your desired level amount.
  3. Press Enter — XP levels appear instantly.

Related commands

Switch to Peaceful mode so hostile mobs don't spawn

/difficulty peaceful
Start a Thunder Storm
Start a Thunder Storm Awaiting in-game verification
Both

Trigger a thunderstorm with lightning

/weather thunder 600
Set Time to Night
Set Time to Night Awaiting in-game verification
Both

Make it nighttime immediately

/time set night
Display World Seed
Display World Seed Awaiting in-game verification
Java

See the world seed for reproducibility or map info

/seed

Become nearly invincible

/effect give @p resistance 999999 255 true

Switch yourself into Creative mode

/gamemode creative