Skip to main content

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

Time of Day

The arc:time_of_day condition type checks if the world time is within a specified range (0-24000).

Parameters

ParameterTypeRequiredDefaultDescription
min_timeintRequired-Minimum time (0-24000).
max_timeintRequired-Maximum time (0-24000).

Example

The following example gives strength during the night (13000-23000).

data/my_datapack/arc/night_strength.json
{
"holder": {
"type": "arc:player",
"id": "arc:player"
},
"type": "arc:on_walk",
"conditions": [
{
"type": "arc:time_of_day",
"min_time": 13000,
"max_time": 23000
}
],
"rewards": [
{
"type": "arc:effect",
"effect": {
"id": "minecraft:strength",
"duration": 40
}
}
]
}

Compatible Action Types