Skip to content
Skip to content

Minecraft Command Generator

Build Minecraft commands with a form instead of memorizing syntax, checked for your edition and version.

Quick answer:Choose your edition and version, pick a command, fill in the fields and copy the result. The generator writes the syntax that version expects, flags mistakes before you paste, and never gives Bedrock players Java-only syntax.
Command

/summon

Zombie

Use numbers, ~ for relative to you (~ ~1 ~) or ^ for where you look (^ ^ ^5).

Your command

Use in
/summon minecraft:zombie ~ ~ ~

30 characters

Java output for this version was tested on a real 26.3 server. Bedrock output follows Microsoft's official command reference.

How commands are checked

Each command is built from the syntax of the version you pick. The Java output of every command type was run on real Minecraft servers (26.3, 1.21.11, 1.21.4 and 1.20.4) to confirm the game accepts it; Bedrock output follows Microsoft's command reference. Anything a version cannot do is left out with a note instead of producing a command that fails.

Frequently Asked Questions

Yes. In single player, turn on cheats (Java: Allow Commands; Bedrock: Activate Cheats). On a server you need operator permission. Command blocks also need enable-command-block=true in server.properties on Java.
~ is relative to where the command runs: ~ ~1 ~ is one block above you. ^ is relative to where you are looking: ^ ^ ^5 is five blocks in front of you. Use one style or the other for all three values.
They are target selectors: @p is the nearest player, @a all players, @r a random player, @s whoever runs the command and @e every entity. You can also type a player name.
The most common reasons are the wrong version (item syntax changed in Java 1.20.5 and again in 1.21.5), a missing permission, or pasting a Java command into Bedrock. Pick your exact version here and read any notes under the result.
No. Many commands share a name but differ in argument order and options. For example Java writes /effect give @p speed while Bedrock writes /effect @p speed, and Bedrock /title takes plain text while Java takes a text component.
Java chat accepts 256 characters. Longer commands work in a command block (up to 32,500 characters) or a function file in a data pack. Switch the output to Command block or Function file and the generator drops the leading slash for you.
Save the command in data//function/.mcfunction inside a data pack, one command per line without a slash, then run /function :. Before Java 1.21 the folder was called functions.

More handy tools for Minecraft server admins and players.

View all tools

We use cookies to improve your experience. By continuing to use this site, you agree to our use of cookies. Read our Privacy Policy