Minecraft · Free tool
Minecraft execute command builder
Build /execute chains step by step with as, at, if and unless, and read each one in plain English before you copy it.
How the minecraft execute command builder works
Add steps one at a time and read the plain-English version underneath. Each step changes who runs the command (as), where it runs (at, positioned, in), or whether it runs at all (if, unless). Order matters, because each step passes its result to the next one. Use the example buttons to start from a working speed pad, teleport pad, item cleaner or particle trail.
At the end, type the command to run, without the slash. The tool joins everything into one /execute line you can copy.
Worked example
A speed pad: /execute as @a at @s if block ~ ~-1 ~ gold_block run effect give @s speed 2 1 true. It takes every player (as @a), moves to where that player stands (at @s), checks that the block below is gold, and then gives that player Speed II for 2 seconds.
Java Edition and Bedrock Edition
Since Bedrock 1.19.50, /execute uses the same chained syntax as Java for as, at, positioned, rotated, in, anchored, facing, align, if and unless. Java also has extra steps such as on, store and summon. The command you run at the end still follows each edition, so on Bedrock the speed pad ends with effect @s speed 2 1 true.
Frequently asked questions
What is the difference between as and at?
as changes who runs the command, so @s means that entity. at changes where the command runs, so ~ ~ ~ means that entity position. Most useful commands need both: as @a at @s.
Why does my execute command do nothing?
Common reasons are a selector that matches nobody, an if step that is false, steps in the wrong order, or the area not being loaded. Test the selector alone first, then add steps one at a time.
Can I run more than one command after run?
No. Each /execute runs one command. To run several, use a chain of command blocks that each start with their own /execute, or put the commands in a function.
Does execute work in command blocks?
Yes. It is the main command that command blocks use, and the usual setup is a repeating command block with an execute chain.
Free, no sign-up. The tool runs in your browser, so what you type is not sent to us. Wrong result or out of date? Tell us.