Attribute

Power Type.

Applies one or more attribute modifiers.

Type ID: apoli:attribute

Caution

This power type does not support a condition. If the condition field is present, it will be ignored. If you wish to check for a condition, use Conditioned Attribute instead.

Fields

Field Type Default Description
modifier Attributed Attribute Modifier optional If specified, this modifier will be applied to its corresponding attribute.
modifiers Array of Attributed Attribute Modifiers optional If specified, these modifiers will be applied to their corresponding attributes.
update_health Boolean true When true, the player's health percentage will update to match their new maximum health.

Example

{
    "type": "apoli:attribute",
    "modifier": {
        "name": "Max health increase",
        "attribute": "minecraft:generic.max_health",
        "value": 4,
        "operation": "addition"
    }
}

This power would increase the player's maximum health by 4 (two hearts).