Modify Enchantment Damage Taken
Modifies how much melee damage the entity that has the power takes based on how many levels of enchantments the attacker has.
Type ID: apugli:modify_enchantment_damage_taken
Fields
Field | Type | Default | Description |
---|---|---|---|
enchantment |
Identifier | The enchantment required to activate this power. | |
base_value |
Float | The base value of the extra damage. | |
damage_condition |
Damage Condition Type | optional | If specified, the specified base value with the modifier(s) applied and/or action(s) will only apply if the taken damage fulfills this condition. |
bientity_condition |
Bi-entity Condition Type | optional | If specified, the specified modifier(s) and/or action(s) will only apply if either or both 'actor' (the attacker) and 'target' (the entity that has the power) fulfills this bi-entity condition type. |
modifier |
Attribute Modifier | optional | If set, this modifier will apply to the base value. Modifiers will be applied as many times as enchantment_level - 1 |
the attacker has of the specified enchantment. | |||
modifiers |
Array of Attribute Modifiers | optional | If set, these modifiers will apply to the base value. Modifiers will be applied as many times as enchantment_level - 1 the attacker has of the specified enchantment. |
bientity_action |
Bi-entity Action Type | optional | If specified, this bi-entity action type will be executed on either or both 'actor' (the attacker) and 'target' (the entity that has the power). |
Example
{
"type": "apugli:modify_enchantment_damage_taken",
"enchantment": "minecraft:smite",
"base_value": 1.5,
"modifier": {
"operation": "addition",
"value": 2.5
}
}
1.5 + (enchantment_level * 2.5)
extra damage when hit by a weapon with the Smite enchantment.