Skip to main content

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

FieldTypeDefaultDescription
comparisonComparisonrequiredHow the time of day is compared with compare_to.
compare_toIntegerrequiredThe 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.