Free tool · Minecraft Java

Why doesn't my Minecraft command work?

Paste the command just as you copied it from a video, a guide or a forum. We tell you what has changed in Minecraft since it was written and, if it can be fixed without guessing, how it's written today, ready to copy. If not, we send you to the generator that writes it properly for your version.

Paste the command that doesn't work

It's checked in your browser: nothing is uploaded. For Minecraft Java (Paper, Fabric, Forge, NeoForge and the official server) on 1.21.11 or later.

Paste the command just as you copied it and you'll see what has changed in Minecraft since then and how it's written today.

Create your free Minecraft server

What gets copied wrong the most

  • Game rules (1.21.11): keepInventory is keep_inventory, doDaylightCycle is advance_time and disableRaids became raids, which means the opposite. All of them in the gamerules tool.
  • pvp, allow-nether, spawn-monsters and enable-command-block (1.21.9): no longer read from server.properties; they're rules, like gamerule pvp false.
  • Attributes (1.21.2): no generic. or player. in front.
  • Items with tags (1.20.5): the {Enchantments:[…]} in /give, SkullOwner on heads and the loose numbers of /particle dust.
  • What mobs wear (1.21.5): HandItems and ArmorItems are equipment; and in /tellraw, clickEvent is click_event.
  • /worldborder (1.21.11): time without a letter is ticks; for seconds, 600s.
  • Everything from 1.12 or older: gamemode 1, effect @p speed without give, execute @a ~ ~ ~, /testfor, /replaceitem, numeric IDs and selectors with r=, m= or c=.

Every date comes from the game's own data, the same our generators are built from. Everything is checked in your browser.

Frequently asked questions

Why does a command that used to work fail now?

Because Mojang changes command syntax with every big version: almost all of them in 1.13, items and particles in 1.20.5, attributes in 1.21.2 and game rule names in 1.21.11. A video from two years ago writes the form of back then, and an up-to-date server rejects it.

Why doesn't gamerule keepInventory true work?

Because since 1.21.11 the rule is called keep_inventory, lower case with an underscore. Paste the command above and it comes out already changed.

Why does generic.scale give an error?

Since 1.21.2 attributes have no prefix: minecraft:scale instead of minecraft:generic.scale. The tool removes it for you.

Why does /give with enchantments fail?

Since 1.20.5 items take components in square brackets (diamond_sword[enchantments={sharpness:5}]) instead of tags in braces ({Enchantments:[…]}). As each version writes them differently, we don't rewrite that blindly: we send you to the /give generator, which writes it for yours.

Does it work for Bedrock?

No: it checks Minecraft Java commands. Bedrock has its own commands and they didn't change the same way.

What if my server runs an old version?

Then the old command may be the right one: what we tell you is what changed and since which version. If your server runs that version or an older one, don't change it.

No server yet?

At NapNodes you get a free Minecraft server, no card, on Paper and the latest version: commands use today's syntax, and you type them in the panel's “Console”. And if you want to play with no queues and the server always on, the plans have RAM reserved for you alone, with the service status public on the status page.

Create your free server

More in the gamerules guide and the admin commands guide.

Guides that explain it

More free tools

All the tools