Command generator: /give, /summon and /tellraw for Minecraft Java Edition
Make /give, /summon and /tellraw commands with custom names, colors, lore, enchantments, mob options and clickable chat text, ready to copy.
Commands can give you items no crafting table makes, put mobs exactly where a build needs them, and send chat messages players can click. Their syntax is easy to get wrong, and it has changed twice in recent versions. This generator writes the command for you as you fill in the boxes: copy it and paste it into the chat or a command block.
How to use it
- Pick the command: /give for items, /summon for mobs, or /tellraw for chat messages.
- Choose your Java version. Anything from 1.21.5 on, including the 26.x releases, uses the first choice; 1.20.5 to 1.21.4 use the second.
- Fill in what you want. For /give, choose the item and add a name, lore lines, enchantments or unbreakable. For /summon, choose the mob, where it appears and how it behaves. For /tellraw, write the message, its color and what clicking it does.
- Press Copy, open the chat in a world with cheats on, paste and press Enter. If the length says the command is too long for the chat box, paste it into a command block instead.
Why the version matters
Since Java 1.20.5, items carry data components instead of the old NBT tags, so a named sword is written diamond_sword[custom_name=...] rather than with curly brackets after the id. Java 1.21.5 then changed how text is written inside commands: names, lore and chat messages are now SNBT, like {text:"Dragon Slayer",color:"gold"}, where earlier versions wanted a JSON string in quotes. Click and hover events were renamed at the same time, from clickEvent and hoverEvent to click_event and hover_event, and enchantments lost their levels wrapper. A command in the wrong form fails with a syntax error, so pick the version you play.
Tips
- Custom names show in italics unless you say otherwise; this generator turns italics off unless you tick Italic.
- Enchantment levels above the usual maximum work through commands, up to 255. Some stop getting stronger well before that, and a few, like Protection, behave oddly at very high levels.
- An enchanted book keeps its enchantments in stored_enchantments, so you can put them onto other items at an anvil. The generator switches to that by itself.
- A mob with No AI stands still, does not fall and does not fight: good for statues and shopkeepers. Add Never despawns so it is still there when you come back.
- Since Java 1.21.9, /summon fails for monsters when the difficulty is set to Peaceful.
- A run_command click cannot run commands that send chat, such as /say or /tell, and the player clicking needs permission for the command.
Bedrock Edition
Bedrock Edition commands look similar but take different arguments, and there are no data components. Its /give takes a player, an item, an amount, a data value and an optional JSON with only a few settings (can_place_on, can_destroy, item_lock and keep_on_death); names and lore come from an anvil, and /enchant adds enchantments only up to their normal maximum. Its /summon takes a position, a rotation, a spawn event and a name, for example /summon cow ~ ~ ~ ~ ~ minecraft:entity_born Daisy for a baby cow named Daisy. Its /tellraw uses {"rawtext":[{"text":"Hello"}]} and has no click or hover events. The commands this page writes are for Java Edition.
Questions
Why does the game say my command is unknown or incorrect?
Check that cheats are on for the world (Open to LAN can turn them on for a session), that you chose the right version above, and that the item or mob id exists in your version: an id from a newer update fails in an older one. The red text under the chat box points at the first character the game could not read.
What do I do with a command that is too long?
The chat box stops at 256 characters. A command block takes much longer commands: run /give @s command_block, place the block, open it, paste the command and power it with a button or a lever.
Can I give several enchantments at once?
Yes. Add as many rows as you like; each enchantment appears once on the item, and if you list the same one twice, the last level counts.
Everything happens in this page: nothing is uploaded, and your last settings are remembered in this browser. For more, see the banner designer, the enchantment order calculator for combining books at an anvil, the guides and all tools.