MCTOOLBOX
MC ToolboxMC TOOLBOX

April 17, 2026

Commands & Data

Java vs. Bedrock Commands: Syntax Differences & Converter Guide

Convert commands between Java Edition and Bedrock Edition with our syntax comparison table for target selectors, NBT, and execute commands.

Converting map commands between Minecraft Java Edition and Bedrock Edition (PE, Xbox, Switch, Windows 10) can be confusing due to key differences in command execution engines.

1. The /execute Command Syntax

Java Edition (1.13+)

/execute as @a at @s run particle minecraft:flame ~ ~1 ~

Minecraft Java Edition and Bedrock Edition syntax side-by-side comparison

Bedrock Edition (New Syntax)

/execute as @a at @s run particle minecraft:basic_flame_particle ~ ~1 ~

2. Target Selectors & Hasitem Filter

Bedrock uses a specialized hasitem selector component that Java does not possess:

Bedrock: @a[hasitem={item=diamond,location=slot.weapon.mainhand}]

3. NBT Data Components vs Bedrock Data Values

Java Edition uses raw NBT / Data Components for item customization. Bedrock Edition uses item components inside behavior_packs or data value integers.

Generate Bedrock manifest.json files easily using our Bedrock Manifest Generator!

Convert the intent, not only the spelling

Java and Bedrock share familiar command names, but selectors, components, entity events, item data and available subcommands differ. A valid Java command can therefore require a different Bedrock workflow rather than a direct text substitution.

  1. Write down the intended result: target, item or entity, position and behavior.
  2. Select the edition and exact game version before generating syntax.
  3. Test the smallest command first, then add selector filters and data.
  4. When no equivalent exists, use an add-on, function or a sequence of commands instead of forcing Java syntax into Bedrock.

Check coordinates and selectors

Both editions support absolute and relative coordinates, but edition-specific selector arguments and component systems are common failure points. Test in a copy of the world, especially for commands that replace blocks, remove entities or modify inventories.

Gio Nui

Gio Nui

Independent web developer and editor of MC Toolbox. Guides are maintained alongside the site's browser-based Minecraft tools, with commands, file formats and version notes reviewed during updates.

More Guides