Skip to main content

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

Change Time

The arc:change_time reward type changes the time of day in the world.

Parameters

ParameterTypeRequiredDefaultDescription
timeintRequired-No default valueTime to set or add.
addbooleanOptionalfalseAdd time instead of setting.

Example

The following example advances time by 1000 ticks when the player sleeps.

data/my_datapack/arc/sleep_fast_forward.json
{
"holder": {
"type": "arc:player",
"id": "arc:player"
},
"type": "arc:on_add_effect",
"conditions": [
{
"type": "arc:is_sleeping"
}
],
"rewards": [
{
"type": "arc:change_time",
"time": 1000,
"add": true
}
]
}

Compatible Action Types