Time Of Day (Entity Condition Type)
Compares the world's current time of day, in ticks, with a number.
Type ID: apoli:time_of_day
Fields
| Field | Type | Default | Description |
|---|---|---|---|
comparison | Comparison | required | How the time of day is compared with compare_to. |
compare_to | Integer | required | The number the time of day is compared with. |
Examples
"condition": {
"type": "apoli:and",
"conditions": [
{
"type": "apoli:time_of_day",
"comparison": ">=",
"compare_to": 12000
},
{
"type": "apoli:time_of_day",
"comparison": "<=",
"compare_to": 13000
}
]
}This checks whether the sun is setting.