Guide 1 Docs 2 Reference 3
3

Room type

An isolated world with its own players and tables, from rooms.create or rooms.main.

Functions 2

room:message(text: Text, color: Ink?)

This room's world table: its blocks, entities and displays. This room's players table; its on_join fires each time a player moves in. This room's sound table. This room's fx table. This room's ui table. This room's game table: the game version it runs, its entity kinds and blocks. This room's commands table. Sends a chat line to everyone in this room.

room:destroy()

Takes the room away; players still in it keep the world. Does nothing to rooms.main.

Fields 1

room.spawn_point: Vec3

The room's number. Rooms also compare by identity with ==. Where players arrive in this room; writable. A write is not stored and does not move the chunks that stay loaded.