Give Command Generator

Give an item with a custom name, lore, and enchantments to a player or target selector

Target selectors such as @p, @a, @s, @r or a player name

Click "Choose from image" to browse all items, or type a code yourself, e.g. minecraft:diamond

How to use the Give command generator

  1. Choose the edition and version that match your game
  2. Choose the target, item, and amount
  3. Open "Advanced options" to set a custom name, lore, enchantments, unbreakable, or custom model data (availability depends on edition/version)
  4. Copy the command and run it in Minecraft chat, a command block, or a function file

Advanced Bedrock item options are deliberately disabled until they have been checked against the latest official Bedrock documentation

Worked examples

The examples below come out of the same generator as the form above, so the commands and explanations always match what the tool produces. Copy one and adjust it from there

1. An enchanted diamond sword with a name and lore

The most common shape for a reward item in an adventure map — the name and lore tell players it is not an ordinary drop

/give @p minecraft:diamond_sword[custom_name={text:"ดาบผู้พิทักษ์"},lore=[{text:"ตีแรงกว่าปกติ"},{text:"ของหายาก"}],enchantments={sharpness:5,unbreaking:3},unbreakable={}] 1

What it does Will give 1x "Diamond Sword" to the nearest player, named "ดาบผู้พิทักษ์", 2 line(s) of lore, enchantments: Sharpness level 5, Unbreaking level 3, unbreakable.

2. Give an item to everyone at once

Switching the target to @a makes one command hit every player on the server — handy for handing out starting gear

/give @a minecraft:cooked_beef 64

What it does Will give 64x "Cooked Beef" to all players.

3. A plain item with no extras

The shortest form of /give — target, item, amount. Useful for seeing the bare structure of the command

/give @s minecraft:oak_log 32

What it does Will give 32x "Oak Log" to themselves (whoever runs the command).

How this command differs by edition and version

This is the first example above, run through every edition and version this tool supports. Versions that produce the same result share a row

Java Edition 1.21.5 and up
/give @p minecraft:diamond_sword[custom_name={text:"ดาบผู้พิทักษ์"},lore=[{text:"ตีแรงกว่าปกติ"},{text:"ของหายาก"}],enchantments={sharpness:5,unbreaking:3},unbreakable={}] 1
Java Edition 1.20.5 - 1.21.4
/give @p minecraft:diamond_sword[minecraft:custom_name='{"text":"ดาบผู้พิทักษ์"}',minecraft:lore=['{"text":"ตีแรงกว่าปกติ"}','{"text":"ของหายาก"}'],minecraft:enchantments={"minecraft:sharpness":5,"minecraft:unbreaking":3},minecraft:unbreakable={}] 1
Java Edition 1.13 - 1.20.4 (legacy NBT)
/give @p minecraft:diamond_sword{display:{Name:'"ดาบผู้พิทักษ์"',Lore:['"ตีแรงกว่าปกติ"','"ของหายาก"']},Enchantments:[{id:sharpness,lvl:5s},{id:unbreaking,lvl:3s}],Unbreakable:1b} 1
Bedrock Edition (stable)
/give @p minecraft:diamond_sword 1
  • Bedrock item ids don't always match Java's — double-check this item actually exists on Bedrock
  • A custom name isn't supported in the selected edition/version, so it was left out of the command
  • Lore isn't supported in the selected edition/version, so it was left out of the command
  • Enchantments aren't supported in the selected edition/version, so they were left out of the command

Before you use these