Action on sleep start
origins-powerful-powers:action_on_sleep_startpower type
Runs actions the moment the holder falls asleep, before the night is skipped. Players and villagers.
| Field | Type | Default | Description |
|---|---|---|---|
entity_action | Entity action | optional | Runs on the holder. |
- A bed that's too far, a monster nearby, daytime, or an
origins:prevent_sleeppower stop it from firing. - Origins'
origins:action_on_wake_upcovers waking. To check "asleep right now", useis_sleeping.
Example: the holder heals 2 hearts as they fall asleep.
{
"type": "origins-powerful-powers:action_on_sleep_start",
"entity_action": {
"type": "origins:heal",
"amount": 4
}
}