On this page 6 sections
At a glance
Syntax and parameters — below
Executes a command on one or more entities. Requires enabled cheats. In Java, a similar command is — /execute, but is stored differently.
/execute as <origin> <chainedCommand>/execute at <origin> <chainedCommand>/execute in <dimension> <chainedCommand>/execute positioned <position> <chainedCommand>/execute positioned as <origin> <chainedCommand>/execute rotated <yaw> <pitch> <chainedCommand>/execute rotated as <origin> <chainedCommand>/execute facing <position> <chainedCommand>/execute facing entity <origin> <anchor> <chainedCommand>/execute align <axes> <chainedCommand>/execute anchored <anchored> <chainedCommand>/execute <subcommand> block <position> <block> [chainedCommand]/execute <subcommand> block <position> <block> <blockStates> [chainedCommand]/execute <subcommand> blocks <begin> <end> <destination> <scan mode> [chainedCommand]/execute <subcommand> entity <target> [chainedCommand]/execute <subcommand> score <target> <objective> <operation> <source> <objective> [chainedCommand]/execute <subcommand> score <target> <objective> matches <range> [chainedCommand]/execute run <command>
In angular brackets — what must be written; in square brackets — optional. Words without brackets are written as-is.
| Parameter | What to write |
|---|---|
origin | goal: username or selector @s, @p, @a, @r, @e |
chainedCommand | next part of the command |
dimension | one of: overworld, nether, the_end |
position | x, y, z coordinates (can use ~ and ^) |
yaw | number, can ~ — from current |
pitch | number, can ~ — from current |
anchor | one of: eyes, feet |
axes | word (name) |
anchored | one of: eyes, feet |
subcommand | one of: if, unless |
position | x, y, z coordinates (can use ~ and ^) |
block | block ID, for example stone (total 2648) |
blockStates | block state in square brackets |
begin | x, y, z coordinates (can use ~ and ^) |
end | x, y, z coordinates (can use ~ and ^) |
destination | x, y, z coordinates (can use ~ and ^) |
scan mode | one of: masked, all |
target | goal: username or selector @s, @p, @a, @r, @e |
objective | value from the world |
operation | comparison: <, <=, =, >=, > |
source | goal: username or selector @s, @p, @a, @r, @e |
range | range of numbers, for example 1..5 |
command | command |
| What | Value |
|---|---|
| The command | /execute |
| Who can | operator and command block |
| Cheats are required | yes |
| Variants of recording | 18 |
| In Java | /execute |
What does /execute do in Bedrock?
Executes a command on behalf of one or more objects.
Why doesn't /execute work?
Commands require cheats: they are enabled in the world settings — after which achievements in this world are no longer awarded. This command can be executed by the world host or a command block.
How does /execute in Bedrock differ from Java?
Commands in Java include /execute, but they are written differently: each edition has its own parameters, names, and order. Java commands will not work as-is in Bedrock.
All Bedrock commands /execute in JavaBedrock serversHow to enable cheats
Minecraft Bedrock 1.26.50.4 data: commands, parameters, and descriptions — from Mojang's official bedrock-samples repository.