Target selector builder

Build 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.

Full syntax, parameters and common mistakes: /testfor command.

Sample outputs

Commands this generator produced, each accepted by a real Bedrock Dedicated Server (1.26.66.1).

/testfor @e[type=zombie,r=10]
/testfor @a[tag=red,tag=vip,tag=!dead,m=survival,c=3,scores={coins=10..}]
/testfor @e[type=!player,family=monster,x=0,y=64,z=0,dx=10,dy=5,dz=10]
/testfor @a[l=30,lm=5,rx=90,rxm=45,hasitem={item=diamond,location=slot.hotbar,quantity=1..}]
/testfor @e[name=!"Bob the Trader",rm=2,ry=90,rym=-90]

Other 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.Execute command builderChain execute steps (as, at, positioned, rotated, facing, in, align, anchored), add if / unless conditions, then the command to run.

More from 9Minecraft

Command reference © 2026 9Minecraft.net. Syntax read from Minecraft Bedrock Edition 1.26.66.1.