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

addRecordEntity

addRecordEntity(authority, player, entity, recordEntityOptions?): void

Registers entity to player’s record, the record in the world by default: the save’s read receives it in entities, the world’s record reads the world without it, and the player’s leave takes it with the player. What the player builds for themselves in a world, such as the player’s own shed on a friend’s island; an entity the player’s save’s restore spawns is registered so on its own. Refused for a player, an entity another record keeps, a saved entity and a key’s entity; one the player’s record keeps already moves to the record named.

Parameter Type
authority EntityAuthority
player Entity
entity Entity
recordEntityOptions RecordEntityOptions

void