Skip to content

Callback Player Wake Up

Invokes an action upon the player waking up.

Type ID: kaya:callback/player/wake_up

Format

Field Type Default Description
action Action The action to invoke after the player wakes up.

Example

{
    "type": "kaya:callback/player/wake_up",
    "action": [
        {
            "type": "kaya:give_items",
            "stacks": [
                {
                    "id": "minecraft:egg"
                }
            ],
            "entity": "this"
        },
        {
            "type": "kaya:execute_command",
            "source": {
                "type": "kaya:entity",
                "entity": "this"
            },
            "command": "/playsound minecraft:entity.chicken.egg"
        }
    ]
}

This example gives the player an Egg and plays the minecraft:entity.chicken.egg sound event after the player wakes up.

History

Minecraft Mod Changelog
1.21.5 0.1.0 Added the type.