Java Edition
Java supports NBT/components and a broad command grammar.
Edition comparison
Java and Bedrock commands overlap in purpose but use different grammars, item data, selectors and feature sets. Copying a command across editions without translating it is a common source of errors.
Java vs Bedrock: CommandsJava supports NBT/components and a broad command grammar.
Bedrock uses its own item components and command forms.
| Feature | Java Edition | Bedrock Edition | Why it matters |
|---|---|---|---|
| Item commands | Modern /give commands use Java item components for custom data. | Bedrock /give supports its own optional data and component arguments. | Custom names, lore and components require an edition-specific generator or rewrite. |
| Status effects | Uses /effect give <target> <effect> <seconds> <amplifier>. | Uses /effect <target> <effect> <seconds> <amplifier>. | Even a basic effect command needs different word order. |
| Selectors | Java selectors expose Java-specific predicates, NBT/components and advancement checks. | Bedrock selectors use their own argument set and filters. | A selector accepted in one edition may fail parsing or select different entities in the other. |
| Data access | Commands such as /data and Java storage/NBT workflows expose Java's data model. | Bedrock uses commands, components and scripting APIs built around its own data model. | Datapack command systems cannot be pasted unchanged into behavior packs. |
Choose a design, command or workflow explicitly tested for your edition; commands behaviour is not always portable.