Skip to main content

Modify Projectile Damage (Power Type)

Changes how much damage projectiles fired by the entity with the power deal.

Type ID: apoli:modify_projectile_damage

Fields

FieldTypeDefaultDescription
damage_conditionDamage Condition TypeoptionalIf set, the modifiers and actions only apply when the damage passes this condition.
modifierAttribute ModifieroptionalIf set, this modifier is applied to the damage.
modifiersArray of Attribute ModifiersoptionalIf set, these modifiers are applied to the damage.
target_conditionEntity Condition TypeoptionalIf set, the modifiers and actions only apply when the entity that was hit passes this condition.
self_actionEntity Action TypeoptionalIf set, this action runs on the entity with the power whenever the modifiers are applied.
target_actionEntity Action TypeoptionalIf set, this action runs on the entity that was hit whenever the modifiers are applied.

Examples

{
    "type": "apoli:modify_projectile_damage",
    "damage_condition": {
        "type": "apoli:projectile",
        "projectile": "minecraft:spectral_arrow"
    },
    "modifier": {
        "operation": "addition",
        "value": 8.0
    }
}

This makes spectral arrows shot by the entity deal 4 extra hearts of damage.