Time Of Day (Entity Condition Type)

Checks the current day time ticks of the world.

Checks the current day time ticks of the world.

Type ID: apoli:time_of_day

Fields

FieldTypeDefaultDescription
comparisonComparisonDetermines how the current day time ticks of the world should be compared to the specified value.
compare_toIntegerThe value at which the current day time ticks of the world will be compared to.

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 example will check if it’s the sun is currently setting.