Minecraft Commands List: Every Java and Bedrock Command
Around 80 vanilla Minecraft commands on Java and a similar number on Bedrock, grouped by job, with each one's edition and links to full syntax pages.
Vanilla Minecraft has around 80 commands on Java and a similar number on Bedrock, with a big shared core. This page lists the ones you’re likely to use, grouped by job, with the edition that has each. Commands we cover in depth link to their own page with syntax and worked examples. If you’ve never used a command before, start with our cheat codes guide, which explains how to turn cheats on.
Players and game state
| Command | Does | Edition |
|---|---|---|
| /gamemode | Switch survival, creative, adventure, spectator | Both |
/difficulty |
Peaceful, easy, normal, hard | Both |
/defaultgamemode |
Mode for new players | Both |
/effect |
Add or clear status effects | Both (Java: effect give) |
| /xp | Add, set or check experience | Both |
| /enchant | Enchant the held item | Both |
/clear |
Remove items from inventory | Both |
/kill |
Kill entities | Both |
/spawnpoint |
Set a player’s respawn point | Both |
/gamerule |
Change world rules like keeping inventory | Both |
/advancement |
Grant or revoke advancements | Java |
/attribute |
Change attributes like max health or scale | Java |
/ability |
Flight, mute, worldbuilder | Education / Bedrock with Education features |
Items and entities
| Command | Does | Edition |
|---|---|---|
| /give | Give items | Both |
| /summon | Spawn an entity | Both |
/item |
Change items in slots and containers | Java |
/replaceitem |
Put an item in a slot | Bedrock |
/loot |
Drop or give loot table results | Both |
/data |
Read and edit NBT | Java |
/damage |
Damage an entity with a damage type | Both |
/ride |
Mount or dismount entities | Both |
/tag |
Label entities for selectors | Both |
Moving around and finding things
| Command | Does | Edition |
|---|---|---|
| /tp, /teleport | Teleport | Both |
| /locate | Find structures and biomes | Both |
/spreadplayers |
Scatter players randomly | Both |
/spectate |
Watch from an entity’s view | Java |
/rotate |
Turn an entity | Java |
/seed |
Show the world seed | Both |
World editing
| Command | Does | Edition |
|---|---|---|
| /fill | Fill an area with a block | Both |
/setblock |
Place one block | Both |
/clone |
Copy an area | Both |
/fillbiome |
Change the biome of an area | Java |
/place |
Place features, structures or jigsaw pieces | Java |
/structure |
Save and load structures | Bedrock |
/worldborder |
Set the world border | Java |
/tickingarea |
Keep chunks loaded | Bedrock |
/forceload |
Keep chunks loaded | Java |
Time, weather and environment
/time and /weather (both), /alwaysday and /toggledownfall (Bedrock), /tick (Java, freeze or speed up the game), /playsound, /stopsound and /particle (both), /fog and /camerashake (Bedrock).
Logic and automation
| Command | Does | Edition |
|---|---|---|
| /execute | Run commands as, at or if | Both |
/scoreboard |
Track scores and objectives | Both |
/function |
Run a function file | Both |
/schedule |
Run a function later | Both |
/trigger |
Let players change a score | Java |
/testfor, /testforblock |
Old-style detection | Bedrock |
/bossbar |
Custom boss bars | Java |
/title |
Big on-screen text | Both |
Combine these with command blocks to build minigames without mods.
Chat and multiplayer
/msg, /tell, /w, /me, /say, /tellraw, /list (both); /teammsg and /team (Java). Server admin: /op, /deop, /kick, /ban, /pardon, /whitelist, /stop, /save-all on Java servers, with Bedrock Dedicated Server using allowlist and its own console commands.
A note on flight
There’s no /fly in vanilla. See our fly command page for what actually works.
Need the bigger picture on each edition first? See the Java Edition guide and the Bedrock Edition guide, or head back to the commands hub.
Common questions
Do commands work on Bedrock and Pocket Edition?
Yes. Bedrock on phones, consoles and Windows has a full command set. Most everyday commands match Java, but the syntax for items, mobs and a few others differs.
Can you make custom commands?
Not new slash commands in vanilla. You can chain existing ones with command blocks and functions in data packs (Java) or behavior packs (Bedrock). Servers add custom commands with plugins.
Are command generator websites safe to use?
They're handy for long /give and /summon commands, but check the generator targets your exact version. Java's item syntax changed in 1.20.5 and again in 1.21.5.
Sources & verification
Facts on this page are checked against these references and in-game behavior for the stated edition(s). how we verify.
Keep reading