Skip to content

setFoliage beta ​

Function of @v12-engine/engine

ts
export declare function setFoliage(world: World, layer: string, where: FoliageWhere, value: number): number[];

Paints grass of a style: world.setCells on the layer, checked (a value the layer has a style for, or 0), the cells whole again. Returns the cells that changed