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. Throws on an hour that is not finite, keeping the clock’s, where no clock is found, and where two Worlds keep one each and options names no ground.

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

void