Skinstashery
Minecraft
Home / Minecraft / Command generator
MC-002

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

SelectorMeans
@pThe nearest player
@sWhoever runs the command
@aEvery player
@rOne random player
@eEvery 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