Command Generator

Java Edition 1.12.2 / 1.16.5–1.20.4 / 1.20.5–1.20.6 / 1.21.4

Choose your goal and Java version. Copy the command and follow the steps in your game.

Getting started

Keep inventory, enable night vision, get an invisible frame, or create an enchanted item. Version-specific Java commands, including 26.3, with instructions.

Choose your settings to get a result. Each tool has its own version limitations.

Before you start

Where do I find my edition and version?

Check your Minecraft title screen. Select the exact supported Java Edition release. Bedrock and unlisted versions may use different syntax: the generator does not assume the closest release.

Why does my command fail?

Enable commands in your own world or obtain operator permissions on a server. Check the edition, version, and complete copied command. Use a command block for a command longer than 256 characters.

Can I get level 1000 enchantments?

The supported Java 26.3, 1.21.4, and 1.20.5–1.20.6 component formats cap enchantments at level 255. Classic NBT in 1.16.5–1.20.4 and 1.12.2 allows different values. Your selected version determines the result.