Skip to content
[/craft]

Java vs Bedrock Edition: Minecraft Command Differences

Java Edition and Bedrock Edition share most Minecraft commands but differ in syntax, arguments, and available features. The biggest difference is that Java Edition supports NBT data in commands (letting you set item enchantments or mob properties inline) while Bedrock does not. Item IDs, some gamerule names, and certain command arguments also differ between editions.

Updated 2026-07-03|Java 26.2 + Bedrock 26.32

Why commands differ between editions

Java Edition and Bedrock Edition are separate codebases developed by different teams. While Mojang works toward parity, the two editions handle commands differently in several key areas:

NBT data: Java Edition lets you attach arbitrary NBT (Named Binary Tag) data to items and entities inline in commands. Bedrock Edition does not support NBT in commands -- mob equipment, custom names, and other properties require separate commands.

Item IDs: Java Edition uses namespaced IDs (minecraft:diamond_sword). Bedrock Edition also accepts these, but some items have different IDs or use legacy numeric IDs in older versions.

Command syntax: Some commands use different argument syntax or different argument names between editions.

/give command differences

Java Edition (26.2) uses the data-component format introduced in 1.20.5:

/give @p minecraft:diamond_sword[minecraft:enchantments={levels:{sharpness:5}}] 1

Bedrock Edition (26.32) uses a simpler syntax without NBT or data components:

/give @p diamond_sword 1

Bedrock cannot enchant items via /give inline. To enchant on Bedrock, give the item first, hold it, then run /enchant @p sharpness 5.

/summon and entity differences

Java Edition can set mob equipment, names, and properties in the summon command via NBT:

/summon zombie ~ ~ ~ {CustomName:'"Boss Zombie"',Equipment:[{id:"diamond_sword"}]}

Bedrock Edition summons mobs but cannot set properties inline:

/summon zombie

On Bedrock, use /replaceitem or /loot to give mobs items after spawning, and /summon with an event parameter to spawn mobs in specific states (e.g. baby mobs).

/gamerule differences

Most gamerule names are identical between editions but a few differ:

Java Edition uses camelCase: keepInventory, mobGriefing, doDaylightCycle Bedrock Edition uses camelCase too, and the names are the same for most rules.

Key differences: - Java: /gamerule spawnRadius 10 | Bedrock: not available - Java: /gamerule forgiveDeadPlayers true | Bedrock: not available - Bedrock: /gamerule showdeathmessages true | Java uses sendCommandFeedback

Always test gamerules in-game on your specific edition -- Bedrock adds new rules with each update.

Commands available only on Java Edition

These commands exist in Java 26.2 but have no Bedrock equivalent:

/advancement -- grants or revokes advancements
/attribute -- reads and modifies entity attributes
/bossbar -- creates custom boss health bars
/datapack -- enables and disables datapacks
/forceload -- keeps chunks loaded without players nearby
/jfr -- Java Flight Recorder profiling (developer tool)
/perf -- server performance snapshot
/publish -- opens a singleplayer world to LAN
/recipe -- gives or takes crafting recipes from players
/spectate -- spectates another entity in Spectator mode
/team -- manages scoreboard teams

Commands available only on Bedrock Edition

These commands exist in Bedrock 26.32 but have no Java equivalent:

/agent -- controls the Education Edition coding agent
/alwaysday -- shortcut to lock daytime (equivalent to /gamerule doDaylightCycle false)
/camerashake -- adds a screen shake effect for cinematic use
/clearspawnpoint -- removes a player's individual spawn point
/closewebsocket -- closes a websocket server connection
/connect -- connects to a websocket server
/event -- triggers a behavior-pack event on an entity
/fog -- adds or removes fog settings
/inputpermission -- controls player input (movement, camera)
/structure -- saves and loads structure files
/tickingarea -- creates always-loaded areas (similar to Java's /forceload)

Commands that work on both editions

The majority of commands work on both editions with the same or very similar syntax:

/clear, /clone, /difficulty, /effect, /enchant, /execute, /fill, /gamemode, /gamerule (most rules), /give (basic form), /kill, /locate, /me, /msg, /op, /playsound, /replaceitem, /say, /scoreboard, /setblock, /setworldspawn, /spawnpoint, /stopsound, /summon (basic form), /tag, /teleport (/tp), /tell, /tellraw, /time, /title, /tp, /trigger, /weather, /whitelist, /xp

For commands on both editions, always verify the exact syntax for your version -- minor argument differences exist and both editions receive updates regularly.

Frequently asked questions

Can I copy a command from a Java tutorial and use it on Bedrock?

Sometimes -- simple commands like /time set day or /gamemode creative work identically. Commands involving NBT data, data components, or Java-only arguments will not work on Bedrock and will show a syntax error.

Does Bedrock Edition support NBT in commands?

No -- Bedrock Edition 26.32 does not support inline NBT data in commands. You cannot set item components, mob AI, or custom names via NBT syntax in /give or /summon on Bedrock.

Are item IDs the same on Java and Bedrock?

Most item IDs match (minecraft:diamond, minecraft:oak_log, etc.) but some differ. Bedrock Edition also accepts IDs without the 'minecraft:' namespace prefix. When in doubt, use tab autocomplete in the chat to see what IDs are valid on your edition.

Which edition should I use for command-heavy worlds?

Java Edition has the most powerful command system due to NBT support, datapacks, and a larger set of commands. If you are building complex maps or automation, Java Edition gives you more tools. Bedrock Edition is better for cross-platform play with console and mobile players.

Will Bedrock Edition ever get NBT command support?

Mojang has not announced plans to add full NBT command support to Bedrock Edition as of July 2026. The editions continue to converge on features, but command syntax parity is not on the public roadmap.

Commands to try