Skip to content

Give Command Generator

Build a /give command for a custom item with a name, lore, enchantments, unbreakable and more, in the item component syntax used since 1.20.5 and in 26.x.

Item

@p nearest player, @s yourself, @a everyone, or a player name.

Name and lore

Use & codes. Each lore line goes on its own line.

Insert into the name

Enchantments

Levels above the normal max work up to 255.

Flags and extras

Hide in tooltip

For resource packs. Leave empty to skip.

1 to 99. Leave empty for the default.

Sets the default name colour.

Uses taken. This item has 1561 durability.

Attribute modifiers

Written for 1.21.5 and newer only.

None. Adding any modifier replaces the item's default attack damage and speed.

Preview

Ember Blade
Sharpness VFire Aspect IIUnbreaking IIIForged in the heart of the NetherUnbreakableminecraft:diamond_sword
give command, 239 characters
/give @p diamond_sword[custom_name={text:"Ember Blade",color:"gold",bold:true,italic:false},lore=[{text:"Forged in the heart of the Nether",color:"gray",italic:false}],enchantments={sharpness:5,fire_aspect:2,unbreaking:3},unbreakable={}] 1

Item components with SNBT text. Works on 1.21.5 to 1.21.11 and 26.1 to 26.3.

Fits in chat239 of 256 characters

Which version to pick

Minecraft changed the /give syntax twice. In 1.20.5, item NBT in curly braces was replaced by item components in square brackets, such as diamond_sword[enchantments={...}]. In 1.21.5, text inside components switched from JSON strings to SNBT, so custom_name='{"text":"Sword"}' became custom_name={text:"Sword"}.

1.21.5 also moved the hide options into one tooltip_display component, dropped show_in_tooltip, and made unbreakable={} and enchantments={sharpness:5} the only forms. The 26.x releases kept this syntax. Since 26.1, a stack that breaks its own rules (for example a count above its max stack size) is treated as empty, and since 26.3 /give returns an error when the count is over the limit.

Names, lore and long commands

Custom names and lore show in italics by default, so the tool sets italic:false unless you use &o. Lore without a colour code shows in dark purple. Chat cuts commands off at 256 characters, so longer commands need a command block or the server console.

ZCraft Studios

Want menus and ranks done already?

Our configs come with menus, scoreboards, holograms and rank setups ready to drop in, tested on a live server.