July 19, 2026
Mastering the 1.21 /give Command: Custom Items & Attributes
Learn how to generate custom weapons, colored leather armor, potion items, and modified attack speed attributes using 1.21 components.
The /give command is the foundation of custom item creation in Minecraft. In 1.21, attributes like attack damage, attack speed, movement speed, and max health are attached via the attribute_modifiers component.
Adding Custom Attributes to Weapons
Want a sword that gives the wielder +4 extra hearts and +20% movement speed when held in the main hand?

/give @p diamond_sword[attribute_modifiers=[{type:"generic.max_health",amount:8,operation:"add_value",slot:"mainhand",uuid:[1,2,3,4]},{type:"generic.movement_speed",amount:0.2,operation:"add_multiplied_base",slot:"mainhand",uuid:[5,6,7,8]}]]
Hiding Tooltips
To keep custom items clean, hide unwanted stats using the hide_additional_tooltip component:
/give @p golden_apple[hide_additional_tooltip={}]
Build complex custom items visually without typing raw JSON using our /give Generator Tool!
More Guides
Minecraft Effect Lab: Mastering Invisible Potions and Particles in 26.x
Stop letting messy swirl circles ruin your cinematic builds and boss fights. Lea...
How to Fix "Too Expensive!" Anvil Error in Minecraft (26.x Guide)
Learn step-by-step how to bypass the 40-level anvil limit, understand prior work...
How to Read Spark Profiler Reports to Fix Minecraft Server Lag (26.x)
A deep technical guide to diagnosing MSPT spikes, entity tick bottlenecks, chunk...
How to Repair Corrupted Chunks & Crash Loops Without Wiping Your World
Learn how to isolate corrupted anvil region files (.mca), locate crash coordinat...
