Free tool · Minecraft Java

Minecraft /attribute command generator

Pick your server's version, who you change and which attribute: shrink or grow, get more hearts, run, jump or fall like on the Moon. The command shows up below, written the way that version understands it, ready to copy.

Size: 0.5 is half as tall, 2 is double. On a player, by default: 1. Allows 0.0625 to 16. Since 1.20.5.

To start with: · · · · ·

/attribute YourName minecraft:scale base set 0.5

In the panel's “Console”, without the slash.

How /attribute has changed

It's the command that has changed the most in a short time, which is why half of what gets copied from videos doesn't work:

  • 1.21.4 onwards (and 26.x): /attribute YourName minecraft:scale base set 0.5, and base reset to go back to the default.
  • 1.21.2 and 1.21.3: the same, but without base reset.
  • 1.21 and 1.21.1: with a prefix, minecraft:generic.scale; modifiers already use an id (napnodes:fast).
  • 1.20.5 and 1.20.6: with a prefix, and modifiers with a UUID and a name in quotes.
  • 1.16 to 1.20.4: like the previous one, but the ways of adding are called add, multiply_base and multiply (later, add_value, add_multiplied_base and add_multiplied_total). And there's no scale, gravity or player jump: they arrived in 1.20.5.

It comes from the command tree of each version of the official server. Everything is worked out in your browser.

base set or modifier

base set changes the base value and that's it: it's what you want almost every time. A modifier is added on top with its own name, and can be removed without touching anything else: useful when several things change the same attribute (an event, a rank, an item) and you want to remove only yours. Up to 1.20.6 modifiers carry a UUID: here it comes from its name, so with the same name the remove command gets the same UUID.

All 40 Minecraft attributes

With their id, the name the game gives them, what each one allows and, for the most used, what a player has by default.

Air Drag Modifier (26.2+)air_drag_modifier
Armorarmor · 0 to 30
Armor Toughnessarmor_toughness · 0 to 20
Attack Damageattack_damage · 0 to 2048
Attack Knockbackattack_knockback · 0 to 5
Attack Speedattack_speed · 0 to 1024
Name Tag Score Distance (26.2+)below_name_distance
Block Break Speed (1.20.5+)block_break_speed · 0 to 1024
Block Interaction Range (1.20.5+)block_interaction_range · 0 to 64 · player: 4.5
Bounciness (26.2+)bounciness
Burning Time (1.21+)burning_time · 0 to 1024
Camera Distance (1.21.6+)camera_distance · 0 to 32
Entity Interaction Range (1.20.5+)entity_interaction_range · 0 to 64 · player: 3
Explosion Knockback Resistance (1.21+)explosion_knockback_resistance · 0 to 1
Fall Damage Multiplier (1.20.5+)fall_damage_multiplier · 0 to 100
Flying Speedflying_speed · 0 to 1024
Mob Follow Rangefollow_range · 0 to 2048
Friction Modifier (26.2+)friction_modifier
Gravity (1.20.5+)gravity · -1 to 1 · player: 0.08
Jump Strengthjump_strength · 0 to 32 · player: 0.42
Knockback Resistanceknockback_resistance · 0 to 1
Luckluck · -1024 to 1024
Max Absorption (1.20.2+)max_absorption · 0 to 2048
Max Healthmax_health · 1 to 1024 · player: 20
Mining Efficiency (1.21+)mining_efficiency · 0 to 1024
Movement Efficiency (1.21+)movement_efficiency · 0 to 1
Speedmovement_speed · 0 to 1024 · player: 0.1
Name Tag Distance (26.2+)name_tag_distance
Oxygen Bonus (1.21+)oxygen_bonus · 0 to 1024
Safe Fall Distance (1.20.5+)safe_fall_distance · -1024 to 1024 · player: 3
Scale (1.20.5+)scale · 0.0625 to 16 · player: 1
Sneaking Speed (1.21+)sneaking_speed · 0 to 1
Zombie Reinforcementsspawn_reinforcements · 0 to 1
Step Height (1.20.5+)step_height · 0 to 10 · player: 0.6
Submerged Mining Speed (1.21+)submerged_mining_speed · 0 to 20
Sweeping Damage Ratio (1.21+)sweeping_damage_ratio · 0 to 1
Mob Tempt Range (1.21.2+)tempt_range · 0 to 2048
Water Movement Efficiency (1.21+)water_movement_efficiency · 0 to 1
Waypoint Receive Range (1.21.6+)waypoint_receive_range · 0 to 60000000
Waypoint Transmit Range (1.21.6+)waypoint_transmit_range · 0 to 60000000

The ranges are those of 26.1; attributes that arrived later don't have one yet in the data they come from.

Frequently asked questions

Why does /attribute with generic.scale give an error?

Because since 1.21.2 attributes have no prefix: minecraft:scale, minecraft:max_health, minecraft:movement_speed. generic. (and the player. of block_interaction_range) is from 1.21.1 and older. Pick your version above and the generator writes it the way it understands.

How do I run /attribute on every player?

With “All players”: /attribute works on a single entity and with @a it gives the “Only one entity is allowed” error, so the generator writes it with execute as @a run attribute @s …, which repeats it on each one.

How do I go back to my normal size (or health)?

With “Back to default”: base reset, which exists since 1.21.4. Older versions don't have it, and the generator sets a player's value with base set (scale 1, health 20, speed 0.1…).

Is it lost on death?

What you changed with base set goes back to its value on respawn. Leaving and rejoining or restarting the server keeps it, because it's saved with the player.

Where do I type the command?

In the game chat, with the slash in front, if you're an operator (op). Or in the server console, without the slash; from the console you're nobody, so with “One player” use their name instead of @s.

Does it work for Bedrock?

No: /attribute is a Minecraft Java command (Paper, Fabric, Forge, NeoForge and the official server). Bedrock doesn't have it.

No server yet?

At NapNodes you get a free Minecraft server, no card, on Paper and the latest version, so /attribute uses today's names; you type it in the panel's “Console”. And if you want to play with no queues and the server always on, the plans have RAM reserved for you alone, with the service status public on the status page.

Create your free server

Everything explained in the /attribute guide. More commands: /effect command generator and /summon command generator (to spawn a mob already changed).

Guides that explain it

More free tools

All the tools