Execute Builder
Game Version
Build complex /execute command chains for Minecraft Java Edition 1.21.11. Add subcommands from the palette, configure their parameters, and copy the final command. The /execute command lets you run commands with modified execution context -- change the executor, position, conditions, and more.
Chain multiple subcommandsConditional execution (if/unless)Store results in scoreboards & NBT
Subcommand Palette
Target Selectors
@pNearest player@aAll players@rRandom player@sExecuting entity@eAll entitiesCommand Chain
Add subcommands from the palette to build your /execute command
Click any subcommand on the left to get started
run
Generated Command
0 subcommandsTips
as + atUse "as" then "at" to run a command at each entity's location as that entityif/unlessConditions abort the chain if they fail -- "unless" inverts the teststoreStore the result or success of the final command into a scoreboard, NBT, or bossbar~Use tilde for relative coordinates and caret (^) for local coordinates
How to Use the Execute Command Builder
Build complex /execute command chains visually by stacking sub-commands. Supports as, at, positioned, if, unless, rotated, facing, in, and run with drag-and-drop reordering.
Quick Steps
- 1Click Add Sub-command to start building your execute chain
- 2Select the sub-command type (as, at, if, positioned, etc.)
- 3Fill in the parameters for each sub-command
- 4Drag and drop to reorder sub-commands in the chain
- 5Copy the complete /execute command from the output
Example Use Cases
- Run a command as every player at their location with /execute as @a at @s run ...
- Create conditional logic that checks for a block before running a command
- Target entities within a specific dimension or position range
Tips
The /execute command chains sub-commands left to right — order matters for context
Use if block or if entity sub-commands to add conditions to your chain