Skip to content
ASArcaneMP Scripting APIScripting reference
Global objectClient APIGenerated

Brewing

const Brewing: object

Defined in: client/api.d.ts:1371

Local cauldron inspection and drive. Server-owned brew state arrives through replication, not here.

allowSpawn(registryId): number

ESpawnAllowedResponse: 0 allowed, 1 unregistered, 2 locked, 3 dead, 4 consumed, 5 exists, 6 unknown.

string

number

begin(site, potionId): BrewingSiteInfo | null

Starts a brew from a hand-built recipe — consumes no ingredients.

string | number

string

BrewingSiteInfo | null

beginFromRecipe(site, potionId): BrewingSiteInfo | null

Starts a brew from the manager’s own row — consumes ingredients natively.

string | number

string

BrewingSiteInfo | null

collect(site, collectorId?): BrewingSiteInfo | null

CollectPotion — credits the calling client’s own inventory.

string | number

string

BrewingSiteInfo | null

complete(site): BrewingSiteInfo | null

InstantlyCompleteBrewing on the site’s state.

string | number

BrewingSiteInfo | null

conjure(registryId?, x?, y?, z?, uid?): object | null

Places a potion station locally. Server-owned benches come from the server instead.

string

number

number

number

number

object | null

destroy(site, collectorId?): BrewingSiteInfo | null

DestroyPotion — clears the site back to None.

string | number

string

BrewingSiteInfo | null

discover(on?): boolean

Counts every UFunction ProcessEvent sees. Dev only — a hash insert per call.

boolean

boolean

discovered(max?): string[]

Most-called functions seen since discover(true).

number

string[]

hasSpace(site, collectorId?): object | null

{ hasSpace, yieldLeft } for a collector, default Player0.

string | number

string

object | null

itemCount(itemId, holderId?, collectorId?): number

Native inventory count; -1 if unreadable.

string

string

string

number

multiplier(): number

BrewTimeMultiplier; -1 if the manager is missing.

number

nurtureTime(): object | null

{ ticks, seconds } from the Scheduler’s nurture clock.

object | null

recipes(): object

{ available, locked } recipe rows from the brewing manager.

object

sites(): BrewingSiteInfo[]

Lists every loaded cauldron with its live state.

BrewingSiteInfo[]

spawn(x?, y?, z?): BrewingSiteInfo | null

Raw SpawnActor of a bare cauldron; its UID is a CRC32 of the position, not chosen.

number

number

number

BrewingSiteInfo | null

state(site): BrewingSiteInfo | null

State of one cauldron, by index or cauldronId.

string | number

BrewingSiteInfo | null

watchNative(): boolean

Watches the stock UI’s cauldron calls through the ProcessEvent hook. Returns whether the hook is installed.

boolean