MC CommanderUnofficial Minecraft command tools
All generators syntax-auditedOutputs are checked against official formats with regression tests and code validation. Only commands actually executed in Minecraft are labelled “tested in game.”
Published by
MC Commander operator
Page updated
15 July 2026
Review scope
HTML, JavaScript, PHP and internal links checked. Output not tested in Minecraft is not guaranteed in every environment. Editorial policy
Execute Command Generator

Execute Command Generator

Build execute commands using as, at, if entity, if block, and run.

How to use

Choose a Minecraft version, enter the required fields, import an existing command if needed, then copy or save the output command.

Basic fallback generator

The full generator is loading. If it cannot load, this basic form still creates a usable command.

Output

Related guide

Need examples, common mistakes and search terms for this Minecraft command generator?

Command generator guide

Execute command: as, at and run

The most common confusion is the difference between who runs a command and where the command runs.

Examples and checks
SubcommandMeaning
asChanges the executing entity.
atChanges the execution position.
/execute as @a at @s run particle minecraft:happy_villager ~ ~1 ~