Generated Command
/give @p minecraft:diamond_sword
Pick an item that needs more than a basic command: banner patterns, bundle contents, goat horn sounds and more.
Minecraft Give Command Generator
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.3.
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.
How to Use This Generator
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.
/give Command Syntax
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 |
Specialized Item Generators
Some items need more than a basic command. Banners, bundles, goat horns, decorated pots and the other special items open right here under Special item editors. These have a full page of their own:
| 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 | |
| Multi-page books with formatted text | |
| Rockets with custom explosions, colors and trails |
Frequently Asked Questions
Does this work for Minecraft Bedrock Edition?
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.
What is the /give command syntax in Minecraft Java Edition?
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.
How many items can you give at once with /give?
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.
What is the highest enchantment level you can give?
255 on Java Edition. The enchantments component accepts any level from 1 to 255, for example /give @p diamond_sword[enchantments={sharpness:255}], and rejects anything higher. Levels past the survival maximum really apply: Sharpness 255 adds 128 damage per hit. Bedrock is stricter, because /enchant refuses any level above the enchantment's normal maximum.
Do /give commands work in survival mode?
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.
What changed about /give in Minecraft 1.20.5?
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.
The command works in singleplayer but my server rejects it. Why?
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.
The name or lore is rejected, or shows up as raw JSON. What is wrong?
The text format changed in 1.21.5. On 1.21.5 and later (that includes 1.21.11 and every 26.x release) names and lore are bare text components, so lore=[{"text":"Sword"}] is the right form. From 1.20.5 to 1.21.4 each line has to be a quoted JSON string instead. Paste the newer form on an older server and it is rejected; paste the older form on a newer server and the tooltip shows the raw JSON. Select your server's exact version and the generator switches forms for you. If the server answers Expected ']' the paste was cut short, usually the closing bracket, so use the Copy button rather than selecting the text by hand. Bedrock has no bracket components at all; switch the edition toggle for a Bedrock command.
Can this make commands for older versions like 1.16?
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: