MC ToolboxMC TOOLBOX

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?

Minecraft /give command builder interface with item attribute sliders
Screenshot from the matching MC Toolbox tool.
/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!

Gio Nui

Gio Nui

I'm an independent developer and long-time Minecraft creator. Since 2011, I've been focused on building high-performance, browser-based tools for the community.

More Guides