📊
Advanced
/attribute
Change stats like speed, health, or attack damage on entities.
At a glance
Syntax
Syntax
/attribute <target> <attribute> base set <value>commandtargetcoordsvaluerequiredoptional
See it
What it does
Speed78%
Max Health92%
Attack64%
Entity attributes are tuned
Anatomy
Every part, explained
- 1
CommandRequired/attributeReads or changes an attribute.
- 2
TargetRequired<target>A single entity to modify.
- 3
AttributeRequired<attribute>Which stat, like generic.movement_speed.
- 4
ValueRequiredbase set <value>Set the base value to a number.
Your turn
Try it yourself
Playground
6 tokens · press Enter to run
Copy & paste
Examples
/attribute @s minecraft:generic.movement_speed base set 0.2Set your walking speed.
/attribute @s minecraft:generic.max_health base set 40Double your max health.
/attribute @s minecraft:generic.attack_damage base getRead your attack damage.
Avoid these
Common mistakes
✕
/attribute @s movement_speed base set 0.2✓
/attribute @s minecraft:generic.movement_speed base set 0.2Use the full attribute ID with namespace.
✕
/attribute @a generic.max_health base set 40✓
/attribute @s minecraft:generic.max_health base set 40Attribute targets a single entity, not @a.
Keep going