Minecraft command generator
Pick a command, fill in the boxes, copy the result. Item, mob and effect names come from Java Edition 26.1.
Your command
Where to type a command
Press T or / to open chat, paste the command and press Enter. Cheats must be on in a single-player world, or you need operator rights on a server. Commands longer than 256 characters do not fit in chat, so put those in a command block.
Who the command hits
| Selector | Means |
|---|---|
| @p | The nearest player |
| @s | Whoever runs the command |
| @a | Every player |
| @r | One random player |
| @e | Every entity, including mobs and dropped items |
Coordinates with ~
A tilde means "from where I am". ~ ~ ~ is your own position and ~ ~5 ~ is five blocks above you. Plain numbers are exact world coordinates. Press F3 to see yours.
These commands are for Java Edition. Bedrock Edition uses different syntax for several of them. Custom names use the format from Java 1.21.5 and newer.
More Minecraft tools
- Skin galleryFree Minecraft skins to download or edit: animals, hoodies, knights, ninjas and more.
- Skin editorPaint a 64×64 skin, watch it on a 3D model, download the PNG.
- Crafting recipesEvery crafting-table recipe, one page per item.
- Item listAll items with ID, stack size, recipe and give command.
- EnchantmentsMax level, what each one goes on, and which ones clash.
- MobsEvery mob with size, type and summon command.