Updated:
Minecraft Bedrock command generator
Build commands for Bedrock Edition by choosing options. Switch, mobile, PlayStation, Xbox and Windows all run Bedrock, so the same commands work on each. In every tool, choose Bedrock in the version list to get Bedrock syntax.
Generators that support Bedrock
Pick an item and count to build /give. Item IDs are written the Bedrock way.
Open tool →Enchant generatorOutputs the /enchant form on Bedrock.
Open tool →Effect generatorOutputs Bedrock /effect, which has no give keyword.
Open tool →Potion generatorBuilds /give for potions that exist on Bedrock.
Open tool →Summon generatorBuilds Bedrock /summon commands.
Open tool →Villager generatorSummon only on Bedrock. Custom trades are a Java-only feature.
Open tool →TP generatorBuilds /tp with coordinates and rotation.
Open tool →Fill generatorBuilds /fill to fill an area with a block.
Open tool →Execute generatorOutputs the current Bedrock /execute syntax.
Open tool →Scoreboard generatorCreate objectives, add points and show them.
Open tool →Tellraw and title generatorOutputs the Bedrock rawtext format.
Open tool →Banner and shield designerChoose colors and patterns and copy the command.
Open tool →Java / Bedrock converterPaste a Java command and rewrite it for Bedrock.
Open tool →Where Bedrock differs from Java
| Task | Bedrock | Java |
|---|---|---|
| Give an item | /give @p diamond_sword 1 | /give @p minecraft:diamond_sword 1 |
| Apply an effect | /effect @p speed 30 1 | /effect give @p minecraft:speed 30 1 |
| Enchant the held item | /enchant @p sharpness 5 | /enchant @p minecraft:sharpness 5 |
| Select nearby targets | @e[type=zombie,r=10] | @e[type=minecraft:zombie,distance=..10] |
| Select only one | @e[type=zombie,c=1] | @e[type=minecraft:zombie,limit=1,sort=nearest] |
| Select by game mode | @a[m=creative] | @a[gamemode=creative] |
| Show a message | /tellraw @a {"rawtext":[{"text":"Hello"}]} | /tellraw @a {"text":"Hello"} |
| Remove dropped items | /kill @e[type=item] | /kill @e[type=minecraft:item] |
More differences are listed in Java vs Bedrock commands.
Before you use commands on Bedrock
- Turn on Cheats in the world settings. Commands do not run while it is off.
- Open chat and type the command with a leading
/. This works on Switch and mobile too. - Put long commands in a command block. Get one with
/give @s command_block.
What Bedrock commands cannot do
- /give and /summon do not accept Java-style NBT or components.
- Villager trades cannot be set with a command.
- Enchantment levels above the normal limit cannot be applied with commands alone.
Check which IDs work on Bedrock
Each ID page says whether the same ID works on Bedrock: item IDs, mob IDs, enchantment IDs and effect IDs.
Questions
Do commands work on Nintendo Switch?
Yes. The Switch version is Bedrock Edition, so commands made with these tools work as they are.
Why does nothing happen when I enter a command?
Cheats may be off, or you may not have permission on a multiplayer world. Check the world settings and that you are an operator.
Can I use a Java command as it is?
Simple commands are close, but IDs and selectors are often written differently. Paste it into the converter to rewrite it for Bedrock.