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

FieldSendValue

FieldSendValue<Field> = Field extends PlayerTextCommandField ? string : Field extends EntitiesCommandField | ControlledCommandField ? readonly Entity[] : Field extends ListCommandField<infer Item> ? readonly ItemSendValue<Item>[] : ItemSendValue<Field>

What a sender writes for Field: a vector as any { x, y, z }, and a value of a string enum as the enum’s member or its string.

Type Parameter
Field