Skip to content
ASArcaneMP Scripting APIScripting reference
Data shapeServer APIGenerated

SanctuaryBeast

Defined in: server/api.d.ts:5392

A beast living in one of a room’s vivariums, as the layout saves it.

optional byproduct?: number

Defined in: server/api.d.ts:5457

0 to 1; at 1 its byproduct is ready, and both needs were cleared as it filled.


optional color?: string

Defined in: server/api.d.ts:5416

One of the species’ colors; left out, the server rolls one and keeps it.


optional fed?: boolean

Defined in: server/api.d.ts:5447

Whether it was fed this byproduct cycle.


optional gender?: "male" | "female"

Defined in: server/api.d.ts:5411

Defaults to male.


optional happiness?: number

Defined in: server/api.d.ts:5442

0 to 100.


optional id?: number

Defined in: server/api.d.ts:5396

Unique within the room; left out, the room numbers it.


optional name?: string

Defined in: server/api.d.ts:5421

Custom name, at most 64 bytes.


optional petted?: boolean

Defined in: server/api.d.ts:5452

Whether it was petted this byproduct cycle.


optional pregnancy?: SanctuaryPregnancy

Defined in: server/api.d.ts:5462

A mother’s pregnancy, left out when she carries none.


species: BeastSpecies

Defined in: server/api.d.ts:5406

The game’s species id; Beast.catalog() lists them.


optional updatedAt?: number

Defined in: server/api.d.ts:5467

Epoch seconds the byproduct was last advanced to. Sanctuary.load advances it by the time since, on the game’s 25-minute cycle, so a room away a day comes back with every byproduct ready and every need unmet.


vivarium: "Forest" | "Swamp" | "Coastal" | "Grassland"

Defined in: server/api.d.ts:5401

The vivarium it lives in.


optional x?: number

Defined in: server/api.d.ts:5426

Where it stands (cm, Sanctuary map frame). Left out, or off its vivarium’s island, it starts on the island.


optional y?: number

Defined in: server/api.d.ts:5429


optional yaw?: number

Defined in: server/api.d.ts:5437

Facing, in degrees.


optional z?: number

Defined in: server/api.d.ts:5432