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

CargoContainerHandle

A container as defineCargoContainer returns it. Kinds that name the same handle share its containers: one crate of lime and orange juice.

Property Modifier Type Description
[cargoContainerHandleBrand] readonly true A brand no other value carries, so a kind takes only what defineCargoContainer made. A type alone.
name readonly string -
settings readonly object -
settings.capacity? readonly number How many goods one container draws; the next good opens another container above it. It refuses nothing, which a carrier’s capacity does.
settings.floor? readonly number Metres up the container’s model, from its lowest point and before scale, that its goods stand on: its inner floor.
settings.interior? readonly object Where its goods sit inside it, in its model’s metres before scale, for a crate with handles, thick walls or an opening off its centre. A good wider or deeper than it throws in development.
settings.interior.center? readonly readonly [number, number] Its centre’s x and z in its model’s file, from the centre of the model’s bounds.
settings.interior.depth readonly number Metres along its model’s z.
settings.interior.width readonly number Metres across its model’s x.
settings.model readonly string The registered model the goods ride in, drawn once per container, such as an open crate or a basket.
settings.scale? readonly number The container’s size as a multiple of its model’s, its goods’ with it.