Minecraft.How
Loading...
Skip to content

Minecraft Give Command Generator

Design a custom item and get a /give command in the exact syntax your Minecraft version uses.

Quick answer:Search an item, set the amount, then add a name, lore, enchantments, a trim or attributes. The command updates as you go, in item components for Java 1.20.5 and newer, NBT for older Java, and the supported subset for Bedrock.

Stacks to 1

Item

Diamond Sword
minecraft:diamond_sword
Custom name
Lore lines

Enchantments

Enchantment glint

Attribute modifiers

Tooltip preview

Diamond Sword

Your command

Use in
/give @p minecraft:diamond_sword 1

34 characters

Java output for this version was tested on a real 26.3 server. Bedrock output follows Microsoft's official command reference.

Frequently Asked Questions

Java: /give [components] [count], for example /give @p minecraft:diamond_sword[unbreakable={}] 1. Bedrock: /give [amount] [data] [components], for example /give @p diamond 64.
It is the namespace, which tells the game the item comes from vanilla Minecraft rather than a mod or data pack. It is optional for vanilla items, but writing it out avoids clashes.
Yes. @p gives to the nearest player, @s to yourself, @a to everyone, @r to a random player, or type an exact player name. /give only accepts players, so @e does not work.
Java 1.20.5 replaced item NBT like {display:{Name:...}} with item components in square brackets, such as [custom_name=...]. Java 1.21.5 changed components again: names and lore are written as SNBT text instead of JSON strings, and enchantments no longer use a levels wrapper. That is why old commands copied from the internet often fail.
They are named pieces of item data, like custom_name, lore, enchantments, unbreakable or trim. Each one is written as name=value inside square brackets right after the item id.
No. Bedrock /give only supports a few components: can_destroy, can_place_on, item_lock and keep_on_death. Names and enchantments have to be added with an anvil or enchanting table, or with add-ons.
Items with many lore lines, enchantments and attributes quickly pass the 256 character chat limit in Java. Use a command block or download it as a .mcfunction file instead.
In Java, yes: commands accept enchantment levels up to 255 and combinations the anvil would refuse. The generator warns you so you know the item is not survival-legal.
Yes. You need cheats enabled in single player or operator permission on a server.

More handy tools for Minecraft server admins and players.

View all tools