Execute command builder
Chain execute steps (as, at, positioned, rotated, facing, in, align, anchored), add if / unless conditions, then the command to run.
Full syntax, parameters and common mistakes: /execute command.
Sample outputs
Commands this generator produced, each accepted by a real Bedrock Dedicated Server (1.26.66.1).
/execute as @a at @s run particle minecraft:heart_particle ~ ~2 ~/execute as @e[type=zombie] at @s if block ~ ~-1 ~ gold_block run kill @s/execute at @a positioned ~ ~5 ~ in nether unless entity @e[type=cow,r=10] run say no cows nearby/execute as @a at @s anchored eyes facing entity @e[type=armor_stand,c=1] eyes if score @s coins matches 10.. if blocks ~ ~ ~ ~1 ~1 ~1 ~ ~3 ~ all run tp @s ^ ^ ^1/execute at @p align xyz rotated 90 0 positioned as @s run setblock ~ ~ ~ stoneOther generators
Give command generatorBuild a /give command with amount, data value and the four item components Bedrock supports: can place on, can destroy, item lock and keep on death.Summon command generatorBuild a /summon command: pick the entity, where it appears, which way it faces, a spawn event and a name tag.Effect command generatorGive, make permanent or clear a status effect. Level in the game is the amplifier plus one.Enchant command generatorEnchant the item a player is holding. /enchant only accepts enchantments and levels that are valid for that item.Particle command generatorSpawn a vanilla particle at a position. Pick from all vanilla particle IDs.Playsound command generatorPlay any vanilla sound to a player with volume, pitch and a position.Title command generatorShow a title, subtitle or action bar message, and set how long it fades in, stays and fades out.Tellraw and titleraw generatorBuild the rawtext JSON for /tellraw and /titleraw from up to three parts: plain text, an entity name, a scoreboard value or a translation key.Teleport command generatorTeleport players or mobs to coordinates or to another entity, with rotation or a point to face.Fill command generatorFill a box with a block: solid, hollow, outline only, keep existing blocks, or replace just one block type.Setblock command generatorPlace a single block at a position, optionally with block states.Gamerule command generatorPick a game rule and a value. Covers every rule the game accepts in this version.Target selector builderBuild a target selector such as @e[type=zombie,r=10,c=3] with every argument Bedrock supports. The result is shown inside /testfor so you can try it right away.
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.