/give command generator

Commands

Items with custom names, lore and enchantmentsLearn more

Create an item with a custom name, lore, and enchantments, including levels beyond normal enchanting limits. Copy the generated command for your Minecraft version.

My Game select version

Save your preferences in this browser and apply them to supported tools. Settings in a shared link take priority. Wiki version labels are not affected.

Already have a command? Paste it to fill in the form

For Java Edition. In Minecraft 26.3, select "1.21.5+". Playing on Bedrock? Java ↔ Bedrock command converterNames, descriptions, and enchantments are not supported in /give on Bedrock.

Item

Diamond Sword

Name and lore

Set colors and styles with &, as in MOTD. Code table.

Description

Up to 4 lines of lore, displayed below the item name. Empty lines are omitted.

Enchantments

No enchantments selected. Choose one below to add it at its maximum level, then adjust the level as needed.

These enchantments apply to this item. Commands can set levels above the limits of an enchanting table.

Result

Minecraft /give Command
How it looks in the game

Diamond Sword

When in Main Hand:

Attack Damage: 7

Attack Speed: 1.6

Command — 32 of 256

/give @p minecraft:diamond_sword
Clear Export tooltip as PNG

How to use the result

  1. Enable commands

    In single-player, cheats are enabled when creating the world or by selecting 'Open to LAN' → 'Allow cheats'. On a server, operator permissions are required.

  2. Open the chat

    Key T or /. The command starts with a forward slash — it's already in the string.

  3. Paste and press Enter

    Ctrl+V. The item goes to the player nearest to where the command runs (@p).

  4. Over 256 characters? Use a command block

    Chat accepts commands up to 256 characters long. Use a command block for longer commands. The counter includes the entire command.

What to know about /give

  • Choose the syntax for your Minecraft version. Versions up to 1.20.4 use NBT tags. Version 1.20.5 introduced item components, and 1.21.5 removed the enchantment component's wrapper levels. Using the wrong syntax can cause an error. Select your game version before building the command.
  • Commands support enchantment levels above the normal maximum. An enchanting table cannot give you Sharpness X, but a command can. The game limits the stored level to 255, although very high levels may have little practical benefit.
  • Renamed items appear in italics. Minecraft uses italics for names changed with an anvil. To remove them, set italic:false — the No italics button sets this for you.
  • Incompatible enchantments do not combine their effects. A command can put Sharpness and Bane of Arthropods on the same sword, but their effects do not stack as ordinary compatible enchantments do. Conflicts are marked in the list; you can still select them for custom items.
  • The chat can hold 256 characters. Longer commands exceed the chat limit. The character counter includes the full command, item name and lore; use a command block for longer results.
  • Names and lore support colors. Use formatting codes &, as in MOTD. They become text components using the same formatter as /tellraw and signs.

For more custom items, try these generators: colored leather armor, custom potions, patterned banners, Firework Rocket and signed book.

Frequently asked questions

Will components be preserved when importing /give?

Yes. Unchanged fields, including custom_data, NBT and removed components, retain their original values. Only the field you edit is changed. If an edit would lose data, you will be asked to adjust the source command. Imported commands are stored for one hour, so save your finished command.

Why doesn't the /give command work on another version?

Minecraft uses three incompatible formats: NBT tags up to 1.20.4, item components from 1.20.5, and enchantments without the levels wrapper from 1.21.5. A command for another version may cause a syntax or component error. Select your version or use the command converter.

Can you give an enchanted item above the maximum level?

Yes. Commands can set levels up to the game's limit of 255, beyond what an enchanting table offers. Very high levels may provide little practical benefit.