/execute
Executes a command on behalf of one or more entities.
Operator (cheats on)Cheats must be onChecked on 1.26.66.1
Open the execute command builder →
Syntax
Exactly as the game prints it. <angle brackets> are required, [square brackets] are optional.
/execute <origin: target> <position: x y z> <command: command>/execute <origin: target> <position: x y z> detect <detectPos: x y z> <block: Block> <data: int> <command: command>/execute <subcommand: Option_If_Unless> block <position: x y z> <block: Block> <blockStates: block states> [chainedCommand: ExecuteChainedOption_0]/execute <subcommand: Option_If_Unless> block <position: x y z> <block: Block> <data: int> [chainedCommand: ExecuteChainedOption_0]/execute <subcommand: Option_If_Unless> block <position: x y z> <block: Block> [chainedCommand: ExecuteChainedOption_0]/execute <subcommand: Option_If_Unless> blocks <begin: x y z> <end: x y z> <destination: x y z> <scan mode: BlocksScanMode> [chainedCommand: ExecuteChainedOption_0]/execute <subcommand: Option_If_Unless> entity <target: target> [chainedCommand: ExecuteChainedOption_0]/execute <subcommand: Option_If_Unless> score <target: target> <objective: string> <operation: compare operator> <source: target> <objective: string> [chainedCommand: ExecuteChainedOption_0]/execute <subcommand: Option_If_Unless> score <target: target> <objective: string> matches <range: integer range> [chainedCommand: ExecuteChainedOption_0]/execute align <axes: string> <chainedCommand: ExecuteChainedOption_0>/execute anchored <eyes|feet> <chainedCommand: ExecuteChainedOption_0>/execute as <origin: target> <chainedCommand: ExecuteChainedOption_0>/execute at <origin: target> <chainedCommand: ExecuteChainedOption_0>/execute facing <position: x y z> <chainedCommand: ExecuteChainedOption_0>/execute facing entity <origin: target> <eyes|feet> <chainedCommand: ExecuteChainedOption_0>/execute in <dimension: Dimension> <chainedCommand: ExecuteChainedOption_0>/execute positioned <position: x y z> <chainedCommand: ExecuteChainedOption_0>/execute positioned as <origin: target> <chainedCommand: ExecuteChainedOption_0>/execute rotated <yaw: value> <pitch: value> <chainedCommand: ExecuteChainedOption_0>/execute rotated as <origin: target> <chainedCommand: ExecuteChainedOption_0>/execute run <command: command>Accepted values
ActorLocation
eyesfeet
BlocksScanMode
maskedall
Dimension
overworldnetherthe_end
Option_If_Unless
ifunless
More from 9Minecraft
Bedrock ServersFind a Bedrock server to try your commands on.Server ToolsConfig, MOTD and admin tools that run in the browser.Bedrock WikiAdd-ons, blocks, items and version history.Marketplace TrackerFree packs and price drops on the Bedrock Marketplace.Bedrock SeedsSeeds with coordinates you can /tp to.GuidesStep-by-step help for installing and running Minecraft.
Command reference © 2026 9Minecraft.net. Syntax read from Minecraft Bedrock Edition 1.26.66.1.