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

FieldTypeDefaultDescription
attributeIdentifierrequiredThe attribute every modifier applies to.
modifierAttribute ModifieroptionalA single modifier.
modifiersAttribute Modifier arrayoptionalSeveral modifiers.
update_healthBooleantrueScale 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
    }
  ]
}