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

createWorld

createWorld(authority, createWorldOptions): number

Makes a world from play, a place players come back to, such as the island a player founds at a harbor: owned by a player seated in this room, counted in the player’s 10, or by the creator. Answers the request’s id; WorldCreatedEvent answers on a later tick with the world’s id and its invite code, or why none. Throws where no room runs the simulation the authority steps.

Parameter Type
authority Authority
createWorldOptions CreateWorldOptions

number

createWorld(step, { name: "Ada's island", owner: player });