Skip to main content

Modify Status Effect Duration (Power Type)

Changes the duration of status effects as they are applied to the entity with the power. It acts when the effect arrives, so it doesn't change effects the entity already has.

Type ID: apoli:modify_status_effect_duration

Fields

FieldTypeDefaultDescription
modifierAttribute ModifieroptionalA single modifier applied to the duration, in ticks.
modifiersArray of Attribute ModifieroptionalSeveral modifiers.
status_effectIdentifieroptionalLimits the power to one effect.
status_effectsArray of Identifier[]Limits the power to several effects. An empty list means every effect.

Examples

Every effect lasts twice as long:

{
  "type": "apoli:modify_status_effect_duration",
  "modifier": {
    "operation": "multiply_base_multiplicative",
    "value": 1.0
  }
}

Poison, Wither, Blindness and Slowness always last five seconds:

{
  "type": "apoli:modify_status_effect_duration",
  "modifier": { "operation": "set_base", "value": 100 },
  "status_effects": [
    "minecraft:poison",
    "minecraft:wither",
    "minecraft:blindness",
    "minecraft:slowness"
  ]
}
tip

Combine it with apoli:modify_status_effect_amplifier to weaken an effect as well as shorten it, or with apoli:effect_immunity to block it completely.