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

placePiece

placePiece(step, piece, placePieceOptions): PieceResult

Places a new piece at cell, as a system, a bot or a reward does: the request’s checks, the clearance, the game’s checkPlace and its onPiecePlace, and the world’s size, with no player’s reach or access. Answers the piece, or why not.

Parameter Type
step AuthoritativeStep
piece PieceHandle
placePieceOptions PlacePieceOptions

PieceResult