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

CommandFieldKind

What one field of a command’s payload holds.

Boolean: "boolean"


Controlled: "controlled"

A list of entities the sender controls, at most maxLength.


Entities: "entities"

A list of entities, at most maxLength.


Entity: "entity"

Another entity, which the wire carries as its key and the room reads back as its own.


Integer: "integer"

A whole number.


List: "list"

Up to maxLength values of one kind.


Number: "number"


OneOf: "one-of"

One value of a closed set.


PlayerText: "player-text"

Words a player wrote, which a reader holds as a PlayerText.


Target: "target"

A shared entity a predicted command acts on, such as a ball: its reader may write its predicted traits, and the command is refused where it stands out of range.


Vector3: "vector3"

A point or a direction.


WorldId: "world-id"

A world’s id, as the player’s directory names it.