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

defineCargo

defineCargo(name, settings): CargoHandle

Defines a kind of good once, at module scope, and returns its handle, a value that carries its name and its settings and touches no world. A world installs it from carrying({ kinds: [lime] }). The name is what a carrier’s stack, a store and a save hold it by. As an item is a definition apart from the copies in a bag.

Parameter Type
name string
settings CargoOptions

CargoHandle