Minecraft /give Command Generator

Pick from all 1,536 items in the game, add enchantments, a name and lore, then copy the command. Works for both current versions and anything back to 1.20.4.
Item
Diamond Sword
minecraft:diamond_sword
387 shown
/5
Leave empty to keep the item's normal name.
Lore
The description shown under the item name.
Diamond Sword
/give @p minecraft:diamond_sword[enchantments={sharpness:5}] 1
Uses item components in square brackets. Using the wrong one for your version gives a syntax error rather than an item, so check which you need.
Run this from the server console or in game as an operator. On an MCHosts server you can paste it straight into the console in your control panel, without the leading slash.

Need somewhere to run it?

Commands like this need operator access on your own server. Every MCHosts plan gives you a full console and op rights from the moment it starts.
🔒 Risk-free, 7 day money back guarantee. Australian servers, set up in minutes.

The 1.20.5 syntax change

This is why so many give commands found online no longer work. Up to 1.20.4, extra data on an item rode along in an NBT tag written in curly braces. From 1.20.5 the same information is expressed as item components in square brackets.
VersionAn enchanted sword looks like
1.20.5 and newer/give @p minecraft:diamond_sword[enchantments={sharpness:5}] 1
1.20.4 and older/give @p minecraft:diamond_sword{Enchantments:[{id:"sharpness",lvl:5}]} 1
Using one on the other gives a syntax error rather than an item, so it is worth checking which your server runs before copying anything out of a guide.

Target selectors

Who receives the item. These work the same way in every command, not just give.
SelectorWho it means
@pnearest player
@syourself
@aevery player
@ra random player

Enchantments and their survival limits

Commands ignore the limits that apply at an enchanting table or anvil, so you can exceed these levels or combine enchantments that normally conflict. The maximums below are what is reachable in ordinary play.
EnchantmentIdSurvival max
Sharpnesssharpness5
Smitesmite5
Bane of Arthropodsbane_of_arthropods5
Knockbackknockback2
Fire Aspectfire_aspect2
Lootinglooting3
Sweeping Edgesweeping_edge3
Efficiencyefficiency5
Silk Touchsilk_touch1
Unbreakingunbreaking3
Fortunefortune3
Mendingmending1
Powerpower5
Punchpunch2
Flameflame1
Infinityinfinity1
Protectionprotection4
Fire Protectionfire_protection4
Blast Protectionblast_protection4
Projectile Protectionprojectile_protection4
Feather Fallingfeather_falling4
Thornsthorns3
Respirationrespiration3
Aqua Affinityaqua_affinity1
Depth Striderdepth_strider3
Frost Walkerfrost_walker2
Soul Speedsoul_speed3
Swift Sneakswift_sneak3
Loyaltyloyalty3
Channelingchanneling1
Riptideriptide3
Impalingimpaling5
Multishotmultishot1
Quick Chargequick_charge3
Piercingpiercing4
Densitydensity5
Breachbreach4
Wind Burstwind_burst3

Frequently asked questions

Need a server to run these on? Take a look at our server plans, every one of which includes full console access. You might also want the MOTD generator for your server list message.
Item list and icons generated from the official Minecraft 26.2 release. Minecraft item names and textures are the property of Mojang Studios and are shown here to identify items. NOT AN OFFICIAL MINECRAFT SERVICE. MCHosts is not approved by or associated with Mojang Studios or Microsoft.