Skip to content
ASArcaneMP Scripting APIScripting reference
Global objectServer APIGenerated

Herbology

const Herbology: object

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

Server-owned herb plots, replicated to every client.

clear(uid): boolean

Empties a plot back to bare earth.

number

boolean

fertilize(uid, fertilizerId?): boolean

Fertilises an occupied plot. Refused if already fertilised — the yield bonus would stack.

number

string

boolean

get(uid): HerbPlotState | null

One plot by uid.

number

HerbPlotState | null

harvest(uid, multiHarvestable?): boolean

Consumes the ready crop. Refused unless the plot is Grown, which is what stops two players collecting it twice.

number

boolean

boolean

list(): HerbPlotState[]

Every server-owned plot.

HerbPlotState[]

place(plotSize, x, y?, z?, options?): number

Places (or replaces) a plot and returns its derived uid, 0 on failure. Placing the same coordinates twice replaces rather than duplicating, in any world: the uid comes from the coordinates alone.

string

number | Vector3Like

number

number

Places it in that virtual world of that map, as setVirtualWorld does for an entity; map is a player.location().areaId. Default world 0 of the shared map.

string

number

number

plant(uid, plantId, gardenerId?): boolean

Plants into an empty plot. Refused when something is already growing.

number

string

number

boolean

remove(uid): boolean

Removes a plot everywhere.

number

boolean

setGrowth(uid, state, progress?): boolean

Writes the growth state directly; 3 is folded to 4, since the applier would destroy the plant.

number

number

number

boolean

uidAt(x, y?, z?): number

The uid a plot at these coordinates would have, without placing one.

number | Vector3Like

number

number

number