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.

Where

The bonus applies as long as the item is in hand or equipped. Where it is equipped depends on the slot defined for each row.

Attributes

Fraction and Multiply Result take a fraction value: 0.5 is +50%, −0.25 is minus a quarter.

Game version

Result

Example
How it looks in the game

Diamond Sword

When in Main Hand:

+10 Attack Damage

Minecraft /give Command

/give @p minecraft:diamond_sword[attribute_modifiers=[{type:"attack_damage",amount:10,id:"juxmc:attack_damage",operation:"add_value",slot:"mainhand"}]]

Your list replaces the item's default attribute modifiers. A sword will lose its normal attack damage and speed unless you add them to the list.

How to use the result

  1. Enable cheats

    Commands work with operator permissions: in single-player, enable 'Allow Network' with cheats; on a server — /op in the console.

  2. 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.

  3. 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.