Modify Projectile Damage (Power Type)

Modifies how much damage the projectile of the entity that has the power deals.

Modifies how much damage the projectile of the entity that has the power deals.

Type ID: apoli:modify_projectile_damage

Fields

FieldTypeDefaultDescription
damage_conditionDamage Condition TypeoptionalIf specified, the specified modifier(s) and action(s) will only apply if the dealt damage fulfills by this condition.
modifierAttribute ModifieroptionalIf specified, this modifier will apply to the damage amount.
modifiersArray of Attribute ModifiersoptionalIf specified, these modifiers will apply to the damage amount.
target_conditionEntity Condition TypeoptionalIf specified, the specified modifier(s) and action(s) will only apply if the the entity that has been hit fulfills this condition.
self_actionEntity Action TypeoptionalIf specified, this action will be executed on the ‘actor’ entity (the entity that has the power) whenever the modifier(s) are applied.
target_actionEntity Action TypeoptionalIf specified, this action will be executed on the the entity that has been hit whenever the modifier(s) are applied.

Examples

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

This example will modify the damage of the Spectral Arrow projectile entity shot by the entity that has the power to deal additional 4 hearts of damage.