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

declareResource

declareResource(entity, key): void

Gives entity the resource key, where its settings say it starts, as <Resource>, the CharacterSpawn’s resources and a plugin’s resources do: its maximum is the base of its max<Name> stat, which modifiers raise and lower. Declare it before a save’s stats are restored, so a saved stat wins.

Parameter Type
entity Entity
key ResourceKey

void