Skip to content

Action On Death

Power Type

Executes an Entity Action Type when the player dies.

Type ID: epoli:action_on_death

Fields

Field Type Default Description
entity_action Entity Action Type The action to execute on the player.
damage_condition Damage Condition Type optional If specified, the entity action will only be run if the condition passes.

Examples

{
    "type": "epoli:action_on_death",
    "entity_action": {
        "type": "origins:execute_command",
        "command": "say Deathed"
    },
    "damage_condition": {
        "type": "origins:amount",
        "comparison": ">=",
        "compare_to": 5
    }
}

This example will execute the command say Deathed on the player when they die and the attacker damage amount is 5 or above.