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

building

const building: PluginFactory<[BuildingOptions], PluginMade<readonly [SystemDefinition<"rules", false, Server, "takeCommands">], Readonly<Record<never, never>>, { cancel: PageActionDeclaration; place: PageActionDeclaration; rotate: PageActionDeclaration; }, never, { move: CommandDeclaration<{ piece: EntityCommandField & object; quarterTurns: NumberCommandField; variant: OneOfCommandField<string>; x: NumberCommandField; y: NumberCommandField; z: NumberCommandField; }, NoResource | OutOfRange | Occupied | NotStored | Blocked | NotAllowed | OutOfBounds | PlayerFull | Invalid, { piece: EntityCommandField & object; }, false, false, false, false>; place: CommandDeclaration<{ piece: OneOfCommandField<string>; quarterTurns: NumberCommandField; variant: OneOfCommandField<string>; x: NumberCommandField; y: NumberCommandField; z: NumberCommandField; }, NoResource | OutOfRange | Occupied | NotStored | Blocked | NotAllowed | OutOfBounds | PlayerFull | Invalid, { piece: EntityCommandField & object; }, false, false, false, false>; remove: CommandDeclaration<{ piece: EntityCommandField & object; store: BooleanCommandField; }, NoResource | OutOfRange | Occupied | NotStored | Blocked | NotAllowed | OutOfBounds | PlayerFull | Invalid, undefined, false, false, false, false>; }, Readonly<Record<never, never>>, Record<never, never>>>

Grid building: pieces a player places on a lattice of cells, with a ghost, quarter turns, validity shown before the purchase, move, store and demolish by aim, areas that say who builds where, and a rule a game overrides. Each piece is a world record. Its handles are on the factory: building.commands.place, building.actions.rotate. As Godot’s GridMap to an agent and Minecraft’s building to a player.