Modify Damage Taken
Modifies how much damage the entity that has the power takes.
Type ID: origins:modify_damage_taken
Fields
| Field | Type | Default | Description |
|---|---|---|---|
damage_condition |
Damage Condition Type | optional | If specified, the specified modifiers(s) and/or action(s) will only apply if the taken damage fulfills this condition. |
modifier |
Attribute Modifier | optional | If specified, this modifier will apply to the damage amount. |
modifiers |
Array of Attribute Modifiers | optional | If specified, these modifiers will apply to the damage amount. |
self_action |
Entity Action Type | optional | If specified, this action will be executed on the entity that has the power whenever the modifier(s) is applied. |
attacker_action |
Entity Action Type | optional | If specified, this action will be executed on the entity/entities that has been hit whenever the modifier(s) is applied. |
Examples
{
"type": "origins:modify_damage_taken",
"damage_condition": {
"type": "origins:attacker",
"entity_condition": {
"type": "origins:equipped_item",
"equipment_slot": "mainhand",
"item_condition": {
"type": "origins:or",
"conditions": [
{
"type": "origins:enchantment",
"enchantment": "minecraft:binding_curse",
"comparison": ">=",
"compare_to": 1
},
{
"type": "origins:enchantment",
"enchantment": "minecraft:vanishing_curse",
"comparison": ">=",
"compare_to": 1
}
]
}
}
},
"modifier": {
"name": "Weak to cursed items",
"operation": "addition",
"value": 5.5
}
}
This example will make the entity that has the power take 3 additional hearts of damage if the attacker is holding an item with either the Curse of Binding, or Curse of Vanishing enchantments.