Commands/attribute

Used to change or read attributes.
==Syntax==
:attribute <target> <attribute> get [<scale>]
::Returns the total value of the specified attribute.
:attribute <target> <attribute> base get [<scale>]
::Returns the base value of the specified attribute.
:attribute <target> <attribute> base set <value>
::Overwrites the base value of the specified attribute with the given value.
:attribute <target> <attribute> modifier add <uuid> <name> <value> (add|multiply|multiply_base)
::Adds an attribute modifier with the specified properties if no modifier with the same UUID already existed.
:attribute <target> <attribute> modifier remove <uuid>
::Removes the attribute modifier with the specified UUID.
:attribute <target> <attribute> modifier value get <uuid> [<scale>]
::Returns the value of the modifier with the specified UUID.
==Arguments==
: The entity that the attribute is applied to. Only players, armor stands, and mobs have attributes.
: 
: Specifies the attribute.
: 
: The number the value is multiplied with before being stored with command.
: 
: Specifies the uuid of a modifier.
: 
: Specifies the name of a modifier.
: 
: Specifies the value to use.
: 
== Result ==
== Output ==
== Examples ==
* To set the minimum armor value of the current entity to 5:
*: /attribute @s minecraft:generic.armor base set 5
== History ==
de:Befehl/attribute
ja:コマンド/attribute
pt:Comandos/attribute
tr:Komutlar/attribute
zh:命令/attribute