Spawning experience (XP) orbs in Minecraft is a quick way to get the levels you need for enchanting items or repairing gear. Depending on your game version and world settings, you can use built-in commands, throw experience bottles, or set up automated systems similar to those in a How to Build XP Farm guide.
Enable Cheats in Your World
To use commands to spawn experience orbs directly, cheats must be turned on in your world settings. If you created the world with cheats disabled, open your game menu, select Open to LAN, and toggle Allow Cheats to On.
Bedrock Edition players can toggle cheats directly from the world settings menu before loading into the game, though this will disable achievements for that specific world.
Open the Chat Window
Next, you need to open the in-game chat interface to type your command. Press the T key on Java Edition, tap the chat icon on mobile devices, or press the right directional button on console controllers.
Use the Experience Command (Java Edition)
If you are playing Minecraft Java Edition, type the command /experience add @p 100 to give yourself 100 experience points instantly. You can change 100 to any number you prefer, or replace @p with a specific player username.
Alternatively, you can use the /xp command, which functions identically and rewards experience directly to your player level bar.
Use the Xp Command (Bedrock Edition)
If you are playing Minecraft Bedrock Edition, type the command /xp 100 into the chat box to grant yourself 100 experience points. You can also append your player name and the letter L (for example, /xp 50L @s) to award specific player levels instead of raw points.
Throw Experience Bottles for Physical Orbs
If you want physical XP orbs to spawn on the ground rather than adding points directly to your HUD, you can use Experience Bottles. Obtain them in Creative mode or via commands using /give @p experience_bottle.
Throw the bottles on the ground by right-clicking or pressing your secondary action button, and they will shatter to release collectible XP orbs.
Build an Automated XP Farm
If you prefer playing in Survival mode without cheats, spawning physical orbs is best achieved through automated gameplay mechanics. You can follow a How to Make an XP Farm guide to construct monster spawners or furnace arrays that continuously generate collectible experience.
Frequently Asked Questions
Can I spawn exact XP orbs with commands?
Commands in standard vanilla Minecraft add points or levels directly to a player rather than spawning floating physical orbs, except when breaking Bottle O' Enchanting items.
Do commands work on multiplayer servers?
You can only use these experience commands if you are logged in as a server operator (op) or if the server allows cheats for standard players.




















