MC ToolsUnofficial Minecraft helpers
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.

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.

具体例と確認項目
SubcommandMeaning
asChanges the executing entity.
atChanges the execution position.
/execute as @a at @s run particle minecraft:happy_villager ~ ~1 ~