MC ToolboxMC TOOLBOX

April 17, 2026

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
Screenshot from the matching MC Toolbox tool.

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!

Gio Nui

Gio Nui

I'm an independent developer and long-time Minecraft creator. Since 2011, I've been focused on building high-performance, browser-based tools for the community.

More Guides