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

addStatModifier

addStatModifier(writer, entity, name, modifier): void

Adds a modifier to a stat. A stat it has not declared starts at a base of zero. A timed one is held with the tick it ends on: one of N steps added on tick T applies on ticks T to T + N − 1.

Parameter Type
writer EntityAuthority
entity Entity
name string
modifier StatModifier

void