Modify Damage Dealt

Power Type.

Modifies how much melee damage the player deals.

Type ID: origins:modify_damage_dealt

Fields

Field Type Default Description
damage_condition Damage Condition optional If set, the modifiers will only apply to damage which satisfies this condition.
modifier Attribute Modifier optional If set, this modifier will apply to the damage amount.
modifiers Array of Attribute Modifiers optional If set, these modifiers will apply to the damage amount.
target_condition Entity Condition optional If set, the action will only be triggered when a target matching this condition is hit.
self_action Entity Action optional If set, this action will be executed on the player whenever this power applies a modification.
target_action Entity Action optional If set, this action will be executed on the target whenever this power applies a modification.

Example

{
    "type": "origins:modify_damage_dealt",
    "condition": {
        "type": "origins:in_block_anywhere",
        "block_condition": {
            "type": "origins:block",
            "block": "minecraft:water"
        },
        "comparison": ">=",
        "compare_to": 1
    },
    "modifier": {
        "name": "Extra damage when submerged",
        "operation": "addition",
        "value": 5.0
    }
}

This example gives the player additional 2 and a half hearts of damage if the player is inside a water fluid, regardless of its fluid level.