/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 |
Yes, switch the edition toggle above the command to Bedrock. Bedrock's give is a smaller command: an item, an amount, a data value, and a short list of components such as can-place-on, can-destroy, keep-on-death and item lock. It has no way to name an item, add lore or set attributes, so those fields are ignored and the tool says so. Enchantments come out as separate /enchant lines, because on Bedrock enchanting works on the item you are holding. Item ids are translated where the two editions disagree, so cobweb becomes web and a blue bed becomes bed with data value 11.
The syntax is /give <target> <item>[<components>] [<count>]. For example, /give @s diamond_sword[enchantments={sharpness:5}] 1 gives yourself a sharpness V sword. On 1.21.4 and earlier the enchantments went inside a levels block instead. 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={sharpness:5}]. It was a breaking change, so commands from older guides will not work in 1.20.5 and later. A second change landed in 1.21.5, which dropped the levels wrapper those early component commands used. This generator picks the right format for the version you select.
Almost always a plugin has taken over /give. EssentialsX and similar plugins register their own /give with completely different syntax, so anything in square brackets is rejected before vanilla ever sees it. Run the same command as /minecraft:give instead, which forces the vanilla one. If you are typing into the server console rather than in-game chat, watch your target too: the console is not an entity, so @s fails outright, and @p resolves to whoever is standing nearest world spawn rather than to you. Use a player name from the console, or run it in chat with operator permissions.
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: