(/Give Command Generator)
Create custom /give commands for Minecraft Java Edition 1.21+. Add enchantments, attributes, custom names, lore, and more.
/give @p minecraft:diamond_sword
diamond_sword
This Minecraft give command generator builds ready-to-paste /give commands for all 1,506 items in Java Edition. Select any item, set a quantity, choose your target, and copy the command straight into your game or command block.The /give command is the fastest way to put items into a player's inventory. It works for everything from basic building blocks to fully
enchanted tools with custom components. Since Minecraft 1.20.5, the syntax uses a new component system instead of the old NBT tags, which makes commands cleaner but also means older command guides are outdated.
This generator handles the new format automatically. Pick your item, tweak the options, and the command output updates in real time. No need to memorize component syntax or worry about bracket placement.
@s (yourself), @p (nearest player), @a (everyone), or type a specific player name.Tip: For items that need special configuration — enchanted books, potions, banners, player heads — use our specialized generators linked below. They provide visual editors tailored to each item type.
The full syntax for the give command in Java Edition 1.21+ is:
/give <target> <item_id>[<components>] <count>| 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 |
The minecraft: namespace prefix is optional — diamond_sword works the same as minecraft:diamond_sword. Commands longer than 256 characters must be run from a command block rather than the chat window.
Some items need more than a basic /give command. These specialized generators provide visual editors for complex item types:
| Generator | What It Does |
|---|---|
| Custom armor with trims, dyes, and enchantments | |
| Books with any combination of all 43 enchantments | |
| Potions, splash potions, lingering potions, and tipped arrows | |
| Custom banners with up to 6 pattern layers and 16 colors | |
| Player heads with custom skins and textures | |
| Custom firework rockets with multiple explosions and effects | |
| Multi-page books with formatted text | |
| Pre-filled shulker boxes, chests, barrels, and more | |
| Signs with custom colored text on front and back | |
| Spawn eggs for all mob types with custom names |
Use /give with custom components to create quest items, unique weapons, or special keys. Combine with the custom_name and lore components to make items feel custom-crafted.
Quickly distribute items to players during events. Use @a as the target to give items to everyone at once, or use @a[distance=..10] to limit it to nearby players.
When building data packs or testing game mechanics, /give saves time over crafting or finding items through gameplay. Pair it with /clear to quickly reset your inventory.
The syntax is /give <target> <item>[<components>] <count>. For example, /give @s diamond_sword 1 gives yourself one diamond sword. Add square brackets after the item ID to include components like enchantments or custom names.
Up to 6,400 items in a single command (100 stacks of 64). For unstackable items like tools or armor, the maximum is 100. Extra items that don't fit in the inventory drop on the ground as entities.
Yes, but only if cheats are enabled. In singleplayer, open to LAN with cheats turned on. On multiplayer servers, you need operator permissions. The /give command functions in any game mode once you have the right permissions.
Version 1.20.5 replaced the old NBT tag system with structured item components. Instead of curly-brace NBT like {Enchantments:[...]}, you now use square-bracket components like [enchantments={levels:{sharpness:5}}]. This was a breaking change, so commands from older tutorials will not work in 1.20.5 and later.
Browse more Minecraft tools: