Skip to content

Callback Player Respawned

Invokes an action upon the player respawning.

Type ID: kaya:callback/player/respawned

Format

Field Type Default Description
action Action The action to invoke when the player respawns.

Example

{
    "type": "kaya:callback/player/respawned",
    "action": {
        "type": "kaya:apply_effects",
        "effects": [
            {
                "id": "minecraft:resistance",
                "duration": -1,
                "amplifier": 199
            }
        ],
        "entity": "this"
    }
}

This example applies the Resistance CC (Infinite) effect when the player respawns.

History

Minecraft Mod Changelog
1.21.5 0.1.0 Added the type.