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

PieceTrait

const PieceTrait: NumberTypedTrait<Trait<{ isStored: boolean; piece: string; placedBy: string; quarterTurns: number; storedBy: string; variant: string; x: number; y: number; z: number; }>, { quarterTurns: "uint8"; x: "int32"; y: "int32"; z: "int32"; }>

One placed or stored piece: its name, its anchor cell, its quarter turns, its variant, who placed it, and whether it is stored and whose storage holds it. The kit writes it; read it with readTrait.