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

ItemDefinition

What an item is, registered once by name and shared by every copy.

Property Type Default value Description
color? ColorRepresentation "white" The colour of the gem a Loot draws when the item names no model.
displayName string undefined What a player reads: "Potion of healing".
equip? ItemEquip undefined Where it is worn and what it changes while it is.
maxStack? number 1 The most one slot holds.
model? string undefined The registered model a Loot and a dropped copy are drawn as. With none, a Loot draws a glowing gem, and a dropped copy nothing.
tags? string[] undefined Words a target matches the item by: "key", "food". A target takes the item when it carries every tag the target accepts.
use? ItemUse undefined What using it does.