Skip to main content

Modify Status Effect Amplifier (Power Type)

Changes the amplifier of status effects as they are applied to the entity with the power. Amplifier 0 is level I and 1 is level II, so setting it to 0 means "always level I".

Type ID: apoli:modify_status_effect_amplifier

Fields

FieldTypeDefaultDescription
modifierAttribute ModifieroptionalA single modifier applied to the amplifier.
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

Poison, Weakness and Mining Fatigue always land at level I:

{
  "type": "apoli:modify_status_effect_amplifier",
  "modifier": { "operation": "set_total", "value": 0 },
  "status_effects": [
    "minecraft:poison",
    "minecraft:weakness",
    "minecraft:mining_fatigue"
  ]
}

Strength, Speed and Regeneration land one level higher:

{
  "type": "apoli:modify_status_effect_amplifier",
  "modifier": { "operation": "add_base_early", "value": 1 },
  "status_effects": ["minecraft:strength", "minecraft:speed", "minecraft:regeneration"]
}