Damage Nearby When Hit
Damages other nearby entities with the initial hit's damage upon the power holder being damaged.
Type ID: apugli:damage_nearby_when_hit
Fields
Field | Type | Default | Description |
---|---|---|---|
damage_condition |
Damage Condition | optional | If specified, the damage condition required for this power to act upon damaging an entity. |
damage_type |
Identifier | The damage type used to deal damage to the nearby entities. | |
source |
Damage Source | DEPRECATED | Use damage_type instead. More information here. |
modifier |
Attribute Modifier | optional | If set, this modifier will apply to the damage value dealt to the nearby entities. |
modifiers |
Array of Attribute Modifiers | optional | If set, these modifiers will apply to the damage value dealt to the nearby entities. |
attacker_self_bientity_condition |
Bi-entity Condition | optional | If set, this condition must be met with the attacker as the actor and the power holder as the target to apply damage to nearby entities. |
attacker_nearby_bientity_condition |
Bi-entity Condition | optional | If set, this condition must be met with the attacker as the actor and an entity that should be damaged by this power as the target to apply damage to that entity. |
self_nearby_bientity_condition |
Bi-entity Condition | optional | If set, this condition must be met with the power holder as the actor and an entity that should be damaged by this power as the target to apply damage to that entity. |
attacker_self_bientity_action |
Bi-entity Action | optional | If set, this applies an action with the attacker as the actor and the power holder as the target. |
attacker_nearby_bientity_action |
Bi-entity Action | optional | If set, this applies an action with the attacker as the actor and any entities that were damaged by this power as the target. |
self_nearby_bientity_action |
Bi-entity Action | optional | If set, this applies an action with the power holder as the actor and any entities that were damaged by this power as the target. |
radius |
Float | 16.0 |
The radius in which this power will act. |
Examples
{
"type": "apugli:damage_nearby_when_hit",
"damage_type": "minecraft:fall",
"damage_condition": {
"type": "apoli:in_tag",
"damage_type": "minecraft:is_fall"
},
"modifier": {
"operation": "multiply_total_multiplicative",
"value": -0.25
},
"radius": 6
}
minecraft:fall
damage that has 25% of the initial damage value upon having the power holder take fall damage.