Skip to content

timeofday

Daedalus1400 edited this page May 16, 2017 · 1 revision

Description:

The timeofday condition checks the time since the most recent sunrise.

Added in release version 0.2.0

Arguments:

type

Must be "timeofday".

comparison

Accepts a string. Valid values are "<", and ">".

value

Accepts a number. Number of ticks since sunrise.

Example Usage:

The following example checks whether the time is after noon:

{"type": "timeofday", "comparison": ">", "value": 6000}

This is will evaluate as:

world.getWorldTime() > 6000

Clone this wiki locally