Back to All Technical Guides
Minecraft Guides & Commands
10 min read
•Updated 2026-08-24
How to Use /give with Custom NBT Tags, Enchantments, Lore & Attributes (1.20 - 1.21+)
Master Minecraft's item creation commands. Learn how to generate unbreakable god weapons, custom colored leather armor, multi-line lore with RGB styling, custom potion effects, and attribute modifiers.
V
Veles B.H
Lead Systems Architect & Core Developer
Advertisement
1. The 1.20.5 / 1.21 Item Components Overhaul
In 1.21+, item NBT has been replaced with modular components. Here is how to create an Unbreakable Netherite Sword with Sharpness 10, Custom RGB Name, and Multi-line Lore:
MCFUNCTION
# Modern 1.20.5 / 1.21+ Component Give Command:
/give @p netherite_sword[
custom_name='{"text":"Voidrender Greatsword","color":"#b2ff00","bold":true}',
lore=['{"text":"Forged in the depths of the End","color":"#aaaaaa","italic":true}','{"text":"Level 100 Boss Weapon","color":"#ff5555"}'],
enchantments={levels:{"minecraft:sharpness":10,"minecraft:looting":5,"minecraft:fire_aspect":3}},
unbreakable={},
attribute_modifiers=[{type:"minecraft:generic.attack_damage",amount:25.0,operation:"add_value",slot:"mainhand",id:"enzonic:god_weapon"}]
] 1Advertisement
#minecraft give command generator#custom sword with lore give command#unbreakable sword minecraft 1.21#custom enchantments give#custom model data give command
Related Technical Guides
Minecraft Guides & Commands
How to Get & Use Invisible Item Frames in Minecraft (Java & Bedrock Commands)
Complete guide to obtaining invisible item frames in Minecraft Java 1.16+ to 1.21+ and Bedrock Edition. Learn the exact /give commands, custom NBT tags, survival-friendly resource packs, and decorative armor stand tricks.
Minecraft Guides & Commands
Minecraft MOTD Color Codes & Formatting Guide: RGB Hex, Gradients & MiniMessage
Master Minecraft server MOTD (Message of the Day) styling. Learn classic section sign & ampersand color codes, 16-million RGB hex colors, animated spacing, and modern MiniMessage formatting for Paper, Velocity, and BungeeCord.
Minecraft Guides & Commands
How to Create Custom Block Displays & Text Holograms in Minecraft 1.20+ (No Mods)
Learn how to use Minecraft's new display entities (block_display, item_display, text_display) introduced in 1.19.4 / 1.20 to build floating text holograms, scaled 3D custom models, and furniture without any client mods.