Skip to content
Work in progress. These docs describe Spawnite at launch, and some parts are still being built.

setTimeOfDay

setTimeOfDay(authority, hour, options?): void

Puts the world’s day at hour, from where its clock keeps running: an hour past either end wraps into the day, so 25 is 1 and -1 is 23. A paused clock stands at the new hour. The jump lands on the tick the call stands on: a system’s own, or between steps the tick the world steps next. Throws on an hour that is not finite, keeping the clock’s, where no clock is found, and where two Landscapes keep one each and options names no ground.

Parameter Type Default value
authority Authority undefined
hour number undefined
options TimeOfDayOptions noOptions

void