Double your size
/attribute @s minecraft:scale base set 2Sets your scale to 2, making you twice as big.

/attribute reads or changes the attributes of a player or mob: maximum health, speed, size, gravity, reach and many more. You can edit the base value, or add named modifiers that stack on top of it and can be removed later.
/attribute <target> <attribute> (base|get|modifier)| Argument | Expects | What it does |
|---|---|---|
| target | Entity selectorone | One entity to read or change: @s, a player name or @e[type=minecraft:zombie,limit=1,sort=nearest]. |
| attribute | ID · attribute | Attribute ID, for example minecraft:max_health, minecraft:scale or minecraft:movement_speed. |
| scaleoptional | Number | Optional factor applied to the returned value, handy when storing it as a whole number. |
| value | Number | New base value, or the amount of the modifier. Decimals are allowed, such as 0.5. |
| id | Resource ID | Your own identifier for the modifier, namespace and name, for example blockaria:boost. |
/attribute @s minecraft:scale base set 2Sets your scale to 2, making you twice as big.
/attribute @s minecraft:max_health base set 40Raises your maximum health to 40 points, which is 20 hearts.
/attribute @s minecraft:movement_speed modifier add blockaria:boost 0.5 add_multiplied_baseAdds half of your base speed under the ID blockaria:boost.
/attribute @s minecraft:movement_speed modifier remove blockaria:boostDeletes the modifier added above and brings your speed back.
/attribute @s minecraft:block_interaction_range getPrints how far you can currently reach blocks, modifiers included.
Fill in the fields, then copy the command.
Command generatorbase set changes the entity's own value and base reset restores the default. modifier add stacks a change on top, under an ID you choose, such as blockaria:boost. Three operations exist: add_value adds a flat amount, add_multiplied_base adds a share of the base value, and add_multiplied_total multiplies the total. get returns the final value with every modifier, including those from effects such as Speed given by /effect; base get returns the base only. The optional scale multiplies the returned number, useful with /execute store.
minecraft:max_health: 20 for a player, which is ten hearts.minecraft:scale: makes an entity bigger or smaller.minecraft:gravity, minecraft:jump_strength and minecraft:step_height: movement.minecraft:block_interaction_range: how far a player reaches blocks."Entity Pig has no attribute minecraft:attack_damage" means the mob does not use that attribute, as here with a Pig. "Modifier blockaria:boost is already present on attribute minecraft:movement_speed for entity Steve" asks for a new ID or a removal first. To spawn a mob with custom values, set them right after /summon.
✓ Checked in Java Edition 26.3 · updated 2 November 2026
The maximum grows, but the current health stays the same. Regenerate, or give an Instant Health effect, to fill the new hearts.
Use base reset for a base value, or modifier remove with the same ID for a modifier.
Type it in the chat with cheats on: /attribute <target> <attribute> (base|get|modifier).
Cheats on, or operator level 2.
It is in the official command tree since Java Edition 1.16.