Commands/attribute

Used to change or read attributes.

Syntax

 * Returns the total value of the specified attribute.
 * Returns the base value of the specified attribute.
 * Overwrites the base value of the specified attribute with the given value.
 * Adds an attribute modifier with the specified properties if no modifier with the same UUID already existed.
 * Removes the attribute modifier with the specified UUID.
 * Returns the value of the modifier with the specified UUID.
 * Adds an attribute modifier with the specified properties if no modifier with the same UUID already existed.
 * Removes the attribute modifier with the specified UUID.
 * Returns the value of the modifier with the specified UUID.
 * Removes the attribute modifier with the specified UUID.
 * Returns the value of the modifier with the specified UUID.
 * 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.

Examples

 * To set the minimum armor value of yourself to 5:

History
Befehl/attribute コマンド/attribute Comandos/attribute Komutlar/attribute 命令/attribute