WorldOpenedEvent
constWorldOpenedEvent: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.
Example
Section titled “Example”onEvent(WorldOpenedEvent, ({ isNew }) => isNew && generateIsland(step));