Herbology
constHerbology:object
Defined in: server/api.d.ts:3878
Server-owned herb plots, replicated to every client.
Type Declaration
Section titled “Type Declaration”clear()
Section titled “clear()”clear(
uid):boolean
Empties a plot back to bare earth.
Parameters
Section titled “Parameters”number
Returns
Section titled “Returns”boolean
fertilize()
Section titled “fertilize()”fertilize(
uid,fertilizerId?):boolean
Fertilises an occupied plot. Refused if already fertilised — the yield bonus would stack.
Parameters
Section titled “Parameters”number
fertilizerId?
Section titled “fertilizerId?”string
Returns
Section titled “Returns”boolean
get(
uid):HerbPlotState|null
One plot by uid.
Parameters
Section titled “Parameters”number
Returns
Section titled “Returns”HerbPlotState | null
harvest()
Section titled “harvest()”harvest(
uid,multiHarvestable?):boolean
Consumes the ready crop. Refused unless the plot is Grown, which is what stops two players collecting it twice.
Parameters
Section titled “Parameters”number
multiHarvestable?
Section titled “multiHarvestable?”boolean
Returns
Section titled “Returns”boolean
list()
Section titled “list()”list():
HerbPlotState[]
Every server-owned plot.
Returns
Section titled “Returns”place()
Section titled “place()”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.
Parameters
Section titled “Parameters”plotSize
Section titled “plotSize”string
number | Vector3Like
number
number
options?
Section titled “options?”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
virtualWorld?
Section titled “virtualWorld?”number
Returns
Section titled “Returns”number
plant()
Section titled “plant()”plant(
uid,plantId,gardenerId?):boolean
Plants into an empty plot. Refused when something is already growing.
Parameters
Section titled “Parameters”number
plantId
Section titled “plantId”string
gardenerId?
Section titled “gardenerId?”number
Returns
Section titled “Returns”boolean
remove()
Section titled “remove()”remove(
uid):boolean
Removes a plot everywhere.
Parameters
Section titled “Parameters”number
Returns
Section titled “Returns”boolean
setGrowth()
Section titled “setGrowth()”setGrowth(
uid,state,progress?):boolean
Writes the growth state directly; 3 is folded to 4, since the applier would destroy the plant.
Parameters
Section titled “Parameters”number
number
progress?
Section titled “progress?”number
Returns
Section titled “Returns”boolean
uidAt()
Section titled “uidAt()”uidAt(
x,y?,z?):number
The uid a plot at these coordinates would have, without placing one.
Parameters
Section titled “Parameters”number | Vector3Like
number
number
Returns
Section titled “Returns”number