Skip to content
Minecraft
Free tool

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 1

How it works:

  1. Copy generated command above
  2. Open Minecraft and press T to open chat
  3. Paste and press Enter
  4. 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
/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
/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
/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
/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.

@pThe nearest player
@aAll Players
@rA random player
@sYou (the person running the command)
PlayerNameA 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

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 Support
Minecraft Server ListSurvival, SMP, Skyblock, Modpacks and more – with live player counts and vote rankings.
Ready for your own server?

Host 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.

4.4/5 Trustpilot32,000+ Active serversSince 2010

No setup. No risk. Online in seconds.

Flexible TermCancel anytimeOnline in 60 seconds

Looking for more tools? View all Minecraft tools