Updated:

Java Edition

Bedrock Edition

Switch, mobile, PlayStation, Xbox and Windows Bedrock all use the same numbers. Updating from the store gets the latest version.

A server's version

Versions that changed command syntax (Java)

VersionMain change
1.13A big rewrite: numeric IDs and data values gone, new /execute.
1.20.5Item data moved from NBT ({ }) to components ([ ]). See NBT vs components.
1.21.2Attribute IDs lost the generic. prefix (e.g. max_health).
1.21.5Text such as names uses SNBT; enchantments no longer need levels.
1.21.11Gamerules renamed to forms like keep_inventory (see the gamerule list).

On Bedrock, /execute switched to the newer Java-like form in 1.19.50. Bedrock /give never accepts Java's [ ] or { } item data (see Java vs Bedrock).

Fixing old commands

Commands in articles and videos use the syntax of the version they were written for. Check the date or version mentioned, and rewrite the command if yours differs. Our generators output the right syntax once you pick a version, and the converter updates older commands.

Common problems

Common questions

Check your command

The Command Error Doctor checks common syntax mistakes in your browser.