/give @p minecraft:diamond_sword
This give command generator builds ready-to-paste /give commands for every item in Java Edition. Pick an item, set a quantity, choose your target, and copy the command straight into your game or a command block. It supports versions from 1.14.4 up to 26.2.
The /give command is the fastest way to put items into a player's inventory, from basic blocks to fully enchanted gear with custom components. Since Minecraft 1.20.5 the syntax uses item components instead of the old NBT tags, so older command guides are out of date.
This generator handles both formats automatically: choose a version and the output uses the matching syntax. Pick an item, tweak the options, and the command updates in real time.
1. Search for any item and select it from the grid.
2. Set the target: @s (yourself), @p (nearest player), @a (everyone), or a player name.
3. Add enchantments, names, lore, attributes and components in the tabs.
4. Copy the command, or use Share to send a link that rebuilds the exact item.
The full syntax in 1.20.5 and later is /give <target> <item_id>[<components>] <count>. The minecraft: namespace prefix is optional.
| Parameter | Description | Example |
|---|---|---|
| target | Who receives the item | @s, @p, @a, Steve |
| item_id | Namespaced item identifier | diamond_sword |
| components | Optional item data in square brackets | [enchantments={...}] |
| count | Number of items (1-6400) | 64 |
Some items need more than a basic command. These editors give you a visual builder for complex item types:
| Generator | What It Does |
|---|---|
| Custom armor with trims, dyes, and enchantments | |
| Player heads with custom skins and textures | |
| Pre-filled shulker boxes, chests, barrels, and more | |
| Signs with custom colored text on front and back | |
| Goat horns with every sound variant | |
| Decorated pots with custom sherd faces |
The syntax is /give <target> <item>[<components>] [<count>]. For example, /give @s diamond_sword[enchantments={levels:{sharpness:5}}] 1 gives yourself a sharpness V sword. The target can be @s (self), @p (nearest player), @a (all players), @r (random), or a player name.
Up to 6,400 items in a single command (100 stacks of 64). For unstackable items like tools or armor the maximum is 100. Items that do not fit in the inventory drop on the ground as entities.
Yes, but only with cheats enabled. In singleplayer, open to LAN with cheats on; on a server you need operator permissions. Once you have permission, /give works in any game mode.
Version 1.20.5 replaced the old NBT tag system with structured item components. Instead of {Enchantments:[...]} you now write [enchantments={levels:{sharpness:5}}]. It was a breaking change, so commands from older guides will not work in 1.20.5 and later. This generator switches between the old NBT format and the new component format based on the version you pick.
Yes. Choose any version from 1.14.4 onward in the version selector. For 1.14.4 through 1.20.4 the generator outputs the old NBT-tag format (Enchantments, display, AttributeModifiers); for 1.20.5 and later it outputs the modern component format.
Browse more Minecraft tools: