Minecraft Command Generator
Build a command in a couple of clicks: /give with enchantments, a custom name, lore and Unbreakable, /effect, /summon, /tp, /enchant, /time, /weather and /gamemode. Syntax for new versions (1.20.5–1.21) and old ones (1.13–1.20.4, including 1.16.5). Copy it and paste it into chat on your server.
Item data
FAQ
How do I give myself an enchanted item?
Open the “Give item” tab, click the item you need in the grid (you can search by name), tick the enchantments and levels — the /give command builds itself. Copy it and paste it into chat. You need operator rights (/op) or permission to use give.
Why doesn't the /give command work?
Most often the syntax version is wrong. 1.20.5–1.21 uses the component format in square brackets [enchantments={...}], while 1.13–1.20.4 (and 1.16.5) use the old NBT in curly braces {Enchantments:[...]}. Switch the version next to the item. You also need permission to use the command.
How do I give a potion effect with /effect?
Format: /effect give @p minecraft:speed 30 1 — where 30 is seconds and 1 is the level minus one (amplifier: 0 = level I effect). Add true at the end to hide particles. The /effect give syntax is the same in all versions 1.13–1.21; in 1.19.4+ you can write infinite instead of seconds.
How is /enchant different from /give with enchantments?
/enchant @p minecraft:sharpness 5 applies an enchantment to the item already in the player's hand and checks compatibility. /give hands out a new item with any enchantments at once, without compatibility checks — handy for “impossible” combinations and enchanted books.
How do I summon a mob with /summon?
Format: /summon minecraft:zombie ~ ~ ~ — where ~ ~ ~ means “at the player's position”. Instead of tildes you can enter exact x y z coordinates. Pick a mob in the grid — the id fills in by itself. For a boss: /summon minecraft:wither or /summon minecraft:ender_dragon.
How do I teleport with /tp?
To coordinates: /tp @p 100 64 -200. To another player: /tp Nick OtherNick (the first one to the second). A tilde ~ means a relative offset from the current position. /tp and /teleport work the same way.
How do I change the time and weather?
Time: /time set day (or night, noon, midnight, or a number of ticks 0–24000), /time add 1000 to skip ahead. Weather: /weather clear (rain, thunder), you can add a duration in seconds: /weather rain 600.
Can I give items and run commands for another player?
Yes. In the “Target” field enter a nickname or a selector: @p — nearest, @s — yourself, @a — all players, @e — all entities. For /gamemode: /gamemode creative Nick switches the mode for a specific player.
Does it work on a server with nickname login?
Command syntax is the same with a licensed account and with nickname login — only the game version and command permissions matter. On Spigot/Paper cores, give, effect, summon and tp work the same as in vanilla.
See also
How to use the command generator
Pick a command in the top row: give an item, effect, enchant, summon a mob, teleport, time, weather or game mode. For /give, click an item in the grid or find it with search, tick enchantments and levels, and optionally set a custom name, lore and the unbreakable flag. The command line rebuilds after every change.
DetailsCollapse
Choose the syntax version before copying. Since 1.20.5 items are described with components in square brackets, while 1.13–1.20.4, including 1.16.5, use NBT in curly braces. A command written for one generation will not work in the other, so the version switch sits next to the item.
Leave @p in the target field to give it to yourself, or enter a player name or the @a selector. Copy the finished command with the button and paste it into chat or a command block. You need operator rights on a server or cheats enabled in singleplayer.