Minecraft commands
What each command does, how to type it and who can use it, all in one list. Type the command you are looking for or pick a category; each command's own page has its syntax, arguments and examples you can copy and paste straight into chat.
💬 Basic commands
Chat, help and the commands every player can use. Category page →
🧍 Player commands
Changing game modes, teleporting, effects, experience and inventory. Category page →
🐷 Mobs and entities
Summoning, killing, riding and damaging mobs. Category page →
🎒 Item commands
Giving, clearing and enchanting items, and unlocking recipes. Category page →
🌍 World and time
Time, weather, difficulty, game rules and the world border. Category page →
🧱 Blocks and structures
Placing blocks, filling areas, cloning and placing structures. Category page →
🛡️ Server management
Permissions, bans, the whitelist, saving and shutting down. Category page →
⚙️ Advanced commands
Command block and data pack work: execute, data, scoreboard, function. Category page →
How do you use commands in Minecraft?
Commands are typed into the chat window. On PC, open chat with T; if you press / on its own, chat opens ready for a command. Type the command and press Enter. While typing, Tab opens the autocomplete list, so you do not need to memorize item, mob or block IDs.
In a singleplayer world, commands only work with cheats enabled. If you did not tick "Allow Cheats" when creating the world, pause the game and allow commands from the "World Options" screen (before 26.2 this setting was on the "Open to LAN" screen). On a server you need operator permission; the server owner grants it with the /op command.
Some commands are open to everyone: /help, /msg and /list need no permission. Every command in the list shows the permission level it needs.
Target selectors: @a, @p, @r, @s, @e
Most commands ask "who?". Instead of a player name you can use short selectors:
| Selector | Meaning |
|---|---|
| @s | The entity running the command. The most common one. |
| @p | The nearest player. |
| @a | Every player on the server. |
| @r | A random player. |
| @e | Every entity: Players, mobs, items on the ground. |
| @e[type=zombie,distance=..10] | Filtered with square brackets: Zombies within 10 blocks. |
Commands that take coordinates accept three forms: Plain numbers are absolute positions (100 70 -240), the tilde is relative to where you stand (~ ~10 ~ means ten blocks up) and the caret is relative to where you are looking (^ ^ ^5 is five blocks forward).
Common questions
My commands do not work. What should I do?
The cause is almost always the same: Cheats are off or you lack permission. In a singleplayer world you can allow commands from the "World Options" screen in the pause menu. On a server the owner has to give you permission with /op. If a command shows up red while you type, the syntax is wrong; use Tab completion.
Which command keeps my items when I die?
Type /gamerule keep_inventory true. Rule names changed in 1.21.11: The old keepInventory spelling now gives an error.
Which version are these commands for?
Minecraft 26.3 (Java Edition). Most commands are the same in Bedrock Edition, but some have different syntax and some do not exist at all. We review the list as new versions come out.
Can I use these commands in a command block?
Yes, most commands in the list work in a command block. Get one with /give @s command_block; inside the block you do not need the leading slash. A few chat-only commands (such as /help) make no sense in a block.
Minecraft is a product of Mojang Studios. This tool is an independent helper made for players and is not affiliated with Mojang or Microsoft.