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

WorldOpenedEvent

const WorldOpenedEvent: EventHandle<WorldOpenedRecord, AuthorityOnly, Global>

The room or the page opened its world, before anyone is seated: its record is restored, or, where isNew, the world has none, and the game builds it from its settings, which readHeldWorld reads from this tick.

onEvent(WorldOpenedEvent, ({ isNew }) => isNew && generateIsland(step));