MC Commands

Minecraft Command Hub

An intuitive and powerful command generator for Minecraft server administrators and map makers. We fully support the latest 1.20.5+ component systems as well as legacy NBT tags.

About MCCommand Website & Features

Welcome to the Minecraft Command Generator (MCCommand)! This website was created to help everyone—from casual players to admins running large multiplayer servers and map makers designing maps with vast stories and gimmicks—easily and intuitively generate complex and difficult Minecraft commands. As Minecraft continues to update, the internal structures defining item, entity, and block data have changed significantly multiple times. Most notably, the 1.20.5 update completely deprecated the previously used curly-brace NBT (Named Binary Tag) structure, introducing a new component system based on square brackets. This broke compatibility between older and newer commands. To resolve this confusion, MCCommand provides a unified generator where users can choose between the legacy NBT structure for 1.20.4 and below, and the latest component system for 1.20.5 and above, completely separating the two to provide exact, optimized code.

/give Feature: Beyond giving simple diamond swords or netherite gear, you can grant colored custom names and lore with special stories. It also provides the ability to bypass the normal survival mode limit (e.g., level 5) and apply any desired enchantment infinitely, such as level 255 Sharpness, Protection, or Fortune. Furthermore, you can use the HideFlags property to conceal complex assigned data for a clean UI, or add the Unbreakable property to create items that never wear out.

/summon Feature: Are you designing a powerful boss mob? You can set the monster's health to tens of thousands or make its movement speed faster than a player's. With just a few mouse clicks, you can specify properties such as always making the entity's name tag visible, giving it a glowing effect, or making it invulnerable so it takes no damage. You can easily build an immersive combat environment by equipping custom gear on each body part (head, chest, legs, feet, main hand, off-hand) and even setting probabilistic drop settings.

/setblock Feature: This is a core command when automating redstone circuits or builds. It places hundreds of different blocks, from simple air blocks to redstone blocks and diamond chests, based on coordinates. It supports three modes: replace, destroy, and keep, and you can unlock infinite circuit potential by combining block state directions with NBT tag information such as items contained inside.

Frequently Asked Questions (FAQ)

Q1. Which edition of Minecraft is this command site compatible with?

A. All commands generated on this website are basically optimized for Minecraft Java Edition. For Bedrock Edition (Mobile, Console, Windows 10 Edition), basic command structures like `/give @p diamond_sword` work exactly the same, but complex custom data manipulating enchantments, names, attributes, etc., using NBT tags or components may not apply properly due to engine differences in Bedrock Edition. It is recommended for Bedrock users to utilize this site for simple item giving and block placement.

Q2. The command exceeds 256 characters and I can't paste it all into the chat window. What should I do?

A. The default chat window in Minecraft (opened by pressing the T key) is limited to a maximum of 256 characters per input. Commands that summon swords with multiple enchantments, items with long names and lore, or mobs containing complex NBT data easily exceed this limit. In this case, you need to type the command /give @p command_block into the chat to get a special item called a 'Command Block'. Place this command block on the ground, right-click to open its interface, and paste the copied long command inside. Then, attach a button or lever next to the block and activate the redstone signal to flawlessly execute any command, no matter how long it is.

Q3. What exactly is the difference (component system) between versions 1.20.4 and 1.20.5+?

A. With the 1.20.5 update, Minecraft completely transformed the way detailed item information is stored. Versions 1.20.4 and below used the NBT (Named Binary Tag) structure with curly braces {'{'}, resulting in formats like /give @p diamond_sword{'{'}Enchantments:[{'{'}id:"sharpness",lvl:5{'}'}]{'}'}. However, starting from 1.20.5, it was changed to a components structure using square brackets [] for performance improvement and code clarity, changing the format to /give @p diamond_sword[enchantments={'{'}levels:{'{'}sharpness:5{'}'}{'}'}]. Since the two syntaxes are not perfectly compatible with each other, you must check and select the generator option that matches the version of the server or single-player world you are currently playing on to prevent errors.

Q4. I'm playing in Single Player (Survival Mode) but when I type a command it says "You do not have permission".

A. When first creating a single-player world, if you did not turn on the 'Allow Cheats' option, you cannot use admin-only commands like `/give`, `/summon`, `/setblock`, etc. If you have already started the world with cheats off, there is a temporary workaround. Press the ESC key in-game to open the pause menu, and click the 'Open to LAN' button. In the settings window, change 'Allow Cheats' to 'ON' and start the LAN server; you can then freely use the generated commands until you close and restart the game. If you are on a server environment, you must ask the server admin to grant you OP (admin privileges).

Q5. What do @p, @a, and @s in the Target Selector mean?

A. Target selectors are essential elements that specify who or what the command will be applied to.
- @p (Nearest Player): Targets the 1 closest player from the coordinates where the command is executed. Mostly used when giving items via a command block.
- @a (All Players): Applies the effect simultaneously to all players currently connected to the server. Useful for mass-distributing server-wide announcements or event items.
- @s (Self): Refers to the entity itself that directly typed and executed the command. Powerfully used within functions or data packs executed by oneself.
- @r (Random Player): Randomly draws one target among the connected players. An essential element for roulettes or minigames.

Q6. Can having too much generated command data cause frame drops (lag) in-game?

A. Generally, summoning a single item with powerful enchantments or placing one or two blocks will hardly cause any server or client lag. However, creating a sword with 'Looting Level 255' and killing dozens of animals at once will cause the amount of dropped loot to explode exponentially, resulting in lag. Also, if you put a `/summon` command into a 'Repeat' command block and let it run unconditionally, 20 entities will be summoned per second, which can instantly crash the game. You should always keep game optimization in mind when using powerful custom items and summon commands.