Modify Attribute (Power Type)
Legacy alias of apoli:attribute that takes a single attribute at the top level.
Applies modifiers to one attribute. This is a legacy alias of apoli:attribute — the only difference is that the attribute is written once at the top level instead of inside each modifier, and Apoli folds it in for you.
Type ID: apoli:modify_attribute
Fields
| Field | Type | Default | Description |
|---|---|---|---|
attribute | Identifier | required | The attribute every modifier applies to. |
modifier | Attribute Modifier | optional | A single modifier. |
modifiers | Attribute Modifier array | optional | Several modifiers. |
update_health | Boolean | true | Scale current health with max health when the attribute is minecraft:generic.max_health. |
The composed form
apoli:attribute lets each modifier name its own attribute, so one power can touch several at once — which apoli:modify_attribute cannot:
{
"type": "apoli:attribute",
"modifiers": [
{
"attribute": "minecraft:generic.max_health",
"operation": "multiply_base_multiplicative",
"value": -0.4
},
{
"attribute": "minecraft:generic.movement_speed",
"operation": "multiply_base_multiplicative",
"value": 0.2
}
]
}