Minecraft Give Command Generator for Java
The Minecraft Give Command Generator helps you create /give commands for Minecraft Java. Choose an item, amount, target, name, lore, and enchantments, then copy the finished command. The syntax matches your version: data components from 1.20.5, NBT for 1.13â1.20.4, and numeric IDs for 1.12 and older.
Built by Rugile Rutkauskaite
Free and no sign-up requiredâthe command is created right in your browser.
Command ready? Test it on your own Minecraft server.
Basic settings
Item
Display
Enchantments
No enchantments added
Levels are limited to the actual vanilla maximum. Higher levels require manually editing the command or using plugins.
Generated command
/give @p minecraft:diamond_sword 1How it works:
- Copy generated command above
- Open Minecraft and press T to open chat
- Paste and press Enter
- You need OP permissions or cheats enabled
Quick templates
Example result
What the Give Command Generator creates
You choose an item, quantity, name, lore, color, and enchantments. The generator writes the /give command in the syntax for your Minecraft version. The example below shows the âGod Swordâ preset with a gold, bold name in all four versions.
Example · Preset God Sword · minecraft:diamond_sword · 6 Enchantments · Name in gold, bold
Output: Java 1.21.5+
/give @p minecraft:diamond_sword[custom_name={text:"God Sword",color:"gold",bold:true,italic:false},enchantments={"minecraft:sharpness":5,"minecraft:looting":3,"minecraft:sweeping_edge":3,"minecraft:fire_aspect":2,"minecraft:unbreaking":3,"minecraft:mending":1}] 1- 1.21.5+From Java 1.21.5 on, the name is an SNBT text component with color, bold, and italic. The enchantments are attached to the item ID as a data component in square brackets.
Output: Java 1.20.5 â 1.21.4
/give @p minecraft:diamond_sword[custom_name='{"text":"God Sword","color":"gold","bold":true,"italic":false}',enchantments={"minecraft:sharpness":5,"minecraft:looting":3,"minecraft:sweeping_edge":3,"minecraft:fire_aspect":2,"minecraft:unbreaking":3,"minecraft:mending":1}] 1- 1.20.5 â 1.21.4From 1.20.5 to 1.21.4, the name appears in the command as JSON text in single quotes; the enchantments are the same data component.
Output: Java 1.13 â 1.20.4
/give @p minecraft:diamond_sword{display:{Name:'{"text":"God Sword","color":"gold","bold":true,"italic":false}'},Enchantments:[{id:"minecraft:sharpness",lvl:5},{id:"minecraft:looting",lvl:3},{id:"minecraft:sweeping_edge",lvl:3},{id:"minecraft:fire_aspect",lvl:2},{id:"minecraft:unbreaking",lvl:3},{id:"minecraft:mending",lvl:1}]} 1- 1.13 â 1.20.4From 1.13 to 1.20.4, the name is JSON text under display, and the enchantments are an NBT list named Enchantments, each with id and lvl.
Output: Java 1.12 and below
/give @p 276 1 0 {display:{Name:"God Sword"},ench:[{id:16,lvl:5},{id:21,lvl:3},{id:22,lvl:3},{id:20,lvl:2},{id:34,lvl:3},{id:70,lvl:1}]}- 1.12 and belowUp to 1.12, the command uses numeric IDs: 276 is the diamond sword, and ench contains the enchantment IDs (16 = Sharpness). The name appears in the command without color.
Features
What the Minecraft Give Command Generator can do
A command generator specifically for /give: it creates item commands, not /summon or /effect commands.
Three syntax variants for Java
For 1.20.5 and later, the generator writes data components in square brackets; for 1.13â1.20.4, NBT tags in curly braces; and for 1.12 and earlier, numeric item and enchantment IDs. From 1.21.5 on, name and lore are written as an SNBT text component in the command; for 1.13â1.21.4, as JSON text.
120 items plus custom item ID
Searchable list of 120 common items: tools, armor, combat gear, food, materials, potions, and more. For anything else, enter a custom item ID. The tool automatically removes a leading minecraft: prefix.
Enchantments up to the vanilla maximum
Add enchantments with a click and adjust their levels with + and â. The tool won't let you exceed the vanilla maximum.
Enchantment conflict warnings
If you combine enchantments that conflict under vanilla rules, such as Sharpness and Smite, the tool still generates the command but shows a warning.
Name, lore, and unbreakable
Give the item a custom name and as many lore lines as you like, each in one of the 16 Minecraft colors or, from 1.20.5 on, a custom hex color, bold or without the usual italics, and make it unbreakable with a checkbox. Depending on the version, the generator uses unbreakable={} or Unbreakable:1b.
Quick templates
Load a ready-made preset with one click: God Sword, God Armor, Fortune Pick, Stack of Totems. You can then customize everything.
Matches your selected version
The tool hides items and enchantments that didn't exist in an older version, or skips them with a notice instead of silently adding them to the command.
How it works
How to create a /give command with the Minecraft Give Command Generator
Go from selecting a version to using your finished /give command in Minecraft chat in six steps.
Step 1
Choose a Minecraft version
Under âMinecraft versionâ, select your Java version: 1.21.5+, 1.20.5â1.21.4, 1.13â1.20.4, or 1.12 and older. This determines the command syntax.
Step 2
Set the target
Enter a player name or target selector such as @a under âPlayer / Targetâ. If you leave the field blank, the command uses @p.
Step 3
Choose an item and amount
Choose an item from the list or enter a custom item ID, then set the amount.
Step 4
Name, lore, and unbreakable
Optionally, give the item a custom name and lore lines, choose their color, bold, and italic, and check âUnbreakableâ.
Step 5
Add enchantments
Use âAddâ to add enchantments and adjust their levels with + and â, up to the vanilla maximum. Or load a quick preset such as God Sword.
Step 6
Copy and paste the command
Click âCopy commandâ, open chat in Minecraft with T, paste the command, and press Enter. You'll need OP permissions or cheats enabled.
Syntax
Minecraft command generator: how the /give command works
The /give command gives items to players. Its syntax changed in 1.13 and again in 1.20.5, so commands from old guides often no longer work.
Basic give command syntax
Java 1.20.5+
/give <target> minecraft:<item>[components] <amount>Java 1.13â1.20.4
/give <target> minecraft:<item>{nbt} <amount>Java 1.12 and earlier
/give <target> <numeric_id> <amount> <data>Target selectors
Use the âPlayer / Targetâ field to choose who receives the item. If you leave it blank, the command uses @p.
| @p | The nearest player |
| @a | All Players |
| @r | A random player |
| @s | You (the person running the command) |
| PlayerName | A specific player by name |
Datasets shared with other tools
The enchantment data (names, maximum levels, and conflicts) comes from the same dataset as the enchantment calculator, so both tools show the same values.
Discover more
More tools
Enchantment Calculator
Calculate the cheapest anvil order for your enchantments â including prior work penalty and the 39-level cap.
Built by Rugile Rutkauskaite
Banner generator
Combine banner patterns and preview them live on a banner and shield â includes a /give command for modern and legacy servers.
Built by Rugile Rutkauskaite
Color Codes
All 16 color codes and 6 formatting codes, with chat, MOTD, and MiniMessage syntax and HEX values in one reference.
Built by Rugile Rutkauskaite
Potion Chart
24 potion recipes with ingredients and brewing times, individual icons for each potionâsearchable and filterable by category.
Built by Rugile Rutkauskaite
Armor Trim Generator
NewView all Minecraft armor trims in 3D on your skinâwith /give commands, a shareable link, and smithing template locations.
Built by Justin Schuessler
Crafting Recipes
Browse all Minecraft recipes â crafting table, furnace, stonecutter and smithing table, with reverse search and a raw-materials calculator.
Built by Marvin Kluck
FAQ
Frequently asked questions
Quick answers about the /give command, cheats and OP permissions, enchantments, and item IDs.
A ready-to-use /give command in the syntax of your Minecraft version. A diamond sword with Sharpness V, Looting III, Sweeping Edge III, Fire Aspect II, Unbreaking III, Mending I and the name âGod Swordâ in gold, bold and not italic looks like this for Java 1.21.5+: /give @p minecraft:diamond_sword[custom_name={text:"God Sword",color:"gold",bold:true,italic:false},enchantments={"minecraft:sharpness":5,"minecraft:looting":3,"minecraft:sweeping_edge":3,"minecraft:fire_aspect":2,"minecraft:unbreaking":3,"minecraft:mending":1}] 1. For Java 1.20.5 â 1.21.4, it becomes /give @p minecraft:diamond_sword[custom_name='{"text":"God Sword","color":"gold","bold":true,"italic":false}',enchantments={"minecraft:sharpness":5,"minecraft:looting":3,"minecraft:sweeping_edge":3,"minecraft:fire_aspect":2,"minecraft:unbreaking":3,"minecraft:mending":1}] 1; for Java 1.13 â 1.20.4, /give @p minecraft:diamond_sword{display:{Name:'{"text":"God Sword","color":"gold","bold":true,"italic":false}'},Enchantments:[{id:"minecraft:sharpness",lvl:5},{id:"minecraft:looting",lvl:3},{id:"minecraft:sweeping_edge",lvl:3},{id:"minecraft:fire_aspect",lvl:2},{id:"minecraft:unbreaking",lvl:3},{id:"minecraft:mending",lvl:1}]} 1; and for Java 1.12 and below, without color, /give @p 276 1 0 {display:{Name:"God Sword"},ench:[{id:16,lvl:5},{id:21,lvl:3},{id:22,lvl:3},{id:20,lvl:2},{id:34,lvl:3},{id:70,lvl:1}]}.
The format is /give <target> <item> <amount>. In the generator, select the version, target, item, and amount, then click âCopy commandâ. Open chat in Minecraft with T, paste the command, and press Enter. Enter @a in âPlayer / Targetâ to give the item to all players, or set the amount to 64 to give a full stack.
Usually, the selected version doesn't match your game. The syntax changed substantially in 1.13 and again in 1.20.5, so a command in the 1.20.5+ format won't work on a 1.20.4 server. Since 1.21.5, name and lore are also written differently: if you generate the command with the 1.20.5â1.21.4 option, the item shows the raw JSON text instead of the name. You also need OP permissions or cheats enabled; otherwise, Minecraft rejects slash commands.
In single-player, enable âAllow Cheatsâ when creating the world, or open the world to LAN with cheats enabled. On a server, someone with access to the server console can give you OP permissions using /op <playername>. The generator doesn't grant permissions; it only creates the command.
Not in the generator. It limits each level to the vanilla maximum, such as Sharpness V. For higher levels, edit the number in the copied command manually or use plugins or datapacks. If you select two conflicting enchantments, such as Sharpness and Smite, the tool still generates the command and warns you.
The list contains 120 common items: tools, armor, combat gear, food, materials, potions, and more. For building blocks and anything else, such as a command block, use the âOr enter a custom item IDâ fieldâfor example, command_block. For 1.12 and older, the generator only knows the numeric IDs of items in the list.
No. The generator only supports Java Edition; Bedrock Edition uses different command syntax. It also creates only /give commands for items, not /summon, /effect, or /xp commands.
Yes. Below the name and below each lore line, you pick one of the 16 Minecraft colors, or a custom hex color from 1.20.5 on, and set bold and italic. The generator writes this into the command as a text component with color, bold, and italic: as SNBT from 1.21.5 on, as JSON text for 1.13â1.21.4. That way, the colored name also works when you paste the command into chat or a command block. Formatting codes with the section sign (§, such as §5), on the other hand, are removed by Minecraft when you paste them there; they only work in datapack functions or from the server console. For 1.12 and older, there is no color selection.
Any more questions?
Contact SupportHost your own Minecraft server in 60 seconds
Operator permissions for /give commands, DDoS protection, and Modpacks installed in one click â your server is ready to run.
No setup. No risk. Online in seconds.
Looking for more tools? View all Minecraft tools

