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.
 * The entity that the attribute is applied to. Only players, armor stands, and mobs have attributes.


 * Specifies the attribute.
 * Specifies the attribute.


 * The number the value is multiplied with before being returned.
 * The number the value is multiplied with before being returned.


 * Specifies the modifier. Modifiers with the same UUID do not stack.
 * Specifies the modifier. Modifiers with the same UUID do not stack.

Examples

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

History
Befehl/attribute Comandos/attribute Komutlar/attribute 命令/attribute