Minecraft attribute generator
Items
100-damage swords and player /attribute commandsLearn more
Create a 100-damage sword, speed-boosting boots, twenty extra hearts, or a player at half size. Choose attributes and values to generate /give modifiers or an /attribute command.
My Game select version
Save your preferences in this browser and apply them to supported tools. Settings in a shared link take priority. Wiki version labels are not affected.
How to use the result
- Enable cheats
Commands work with operator permissions: in single-player, enable 'Allow Network' with cheats; on a server — /op in the console.
- Paste the command into chat
Use a command block for long commands: chat accepts only 256 characters. Items appear in your inventory; changes to player attributes take effect immediately.
- Check the value
By command /attribute @s minecraft:scale get — substitute your attribute. It will show the final value with all bonuses.
What to know about attributes
- Your list replaces the default one. Sword, axe, and armor already have properties — damage, attack speed, armor. Component attribute_modifiers is written entirely, and previous lines are not retained.
- Tooltip damage excludes the player's base damage. The game displays "+100 Damage on attack", and deals 101: the player's base damage is added, with a unit.
- The item — while worn, the player is permanently. The bonus from an item is lost when the item is removed. base set changes the player itself, and the value remains after death.
- Each attribute has limits. Health goes up to 1024, size ranges from 0.0625 to 16. The game does not reject values outside this range; it silently truncates them.
- Two entries. 1.21.5 and later — list in component, verified against game versions 1.21.11 and 26.3. Before 1.20.4 — NBT with names generic.* and thirteen attributes. Versions 1.20.5–1.21.4 used three other modifier formats, which this page does not generate.
Name, enchantments, and item properties will be collected /give generator, mob with attributes — constructor /summon. All attributes with boundaries — in wiki.
Frequently asked questions
How to make a sword with massive damage in Minecraft?
Use /give with attribute_modifiers, set attack_damage to a +100 modifier, and select the main-hand slot. The generator supports 1.21.5+ syntax and legacy syntax through 1.20.4.
How do I shrink my player with a Minecraft command?
With the command /attribute @s minecraft:scale base set 0.25, the entity's size is reduced to one-quarter of normal. To restore the default size, use /attribute @s minecraft:scale base reset. The scale attribute was introduced in 1.20.5.
Why has the base damage of a weapon with enchantments disappeared?
The attribute_modifiers component is written fully and replaces the item's previous properties. To keep damage and attack speed, those values are added with separate lines.
