Skip to main content

Get 25% OFF on your first order with BisectHosting using code "DAQEM"!

Is Sleeping

The arc:is_sleeping condition type checks if the player is currently sleeping in a bed.

Parameters

This condition type does not have any parameters.

Example

The following example heals the player while they are sleeping (e.g. triggered by a timer or update).

data/my_datapack/arc/regen_sleep.json
{
"holder": {
"type": "arc:player",
"id": "arc:player"
},
"type": "arc:on_add_effect",
"conditions": [
{
"type": "arc:is_sleeping"
}
],
"rewards": [
{
"type": "arc:heal",
"amount": 1.0
}
]
}

Compatible Action Types