跳转到内容

RecipeMember

此内容尚不支持你的语言。

Defined in: sdk/src/worldgen/rules.ts:44

One kind of thing in a recipe.

optional arc?: readonly [number, number]

Defined in: sdk/src/worldgen/rules.ts:61


optional attach?: "align" | "upright"

Defined in: sdk/src/worldgen/rules.ts:72

Upright, or leaning with the ground.


optional canopy?: number

Defined in: sdk/src/worldgen/rules.ts:70

How far it spreads overhead (a crown), for what is kept clear of view; the footprint when absent.


optional chance?: number

Defined in: sdk/src/worldgen/rules.ts:78

The chance it is placed at all, for a member that may be left out.


optional count?: readonly [number, number]

Defined in: sdk/src/worldgen/rules.ts:58

How many of it (the anchor is always one).


optional far?: object

Defined in: sdk/src/worldgen/rules.ts:85

Decoration’s far version past its layer’s lodDistance: two crossed cards (or a tent, for a conifer) showing this rectangle of its texture. Absent, it is drawn whole out to drawDistance.

optional tent?: boolean

u0: number

u1: number

v0: number

v1: number


footprint: number

Defined in: sdk/src/worldgen/rules.ts:64

Radius it takes on the ground: world units by default, model units with scaleFootprint.


optional grounding?: GroundingOptions

Defined in: sdk/src/worldgen/rules.ts:68

Fit an upright building over its whole base; also reserves at least the scaled base’s circumcircle.


id: string

Defined in: sdk/src/worldgen/rules.ts:46

Stable within the recipe: part of every placement’s id.


optional interactive?: string

Defined in: sdk/src/worldgen/rules.ts:56

What a game interacts with it as (ore, tree to fell); absent, it is decoration and drawn merged with its chunk.


optional material?: string | number

Defined in: sdk/src/worldgen/rules.ts:54


optional mesh?: string | number

Defined in: sdk/src/worldgen/rules.ts:48

The mesh it is drawn with, and the material: an asset path (as a recipe file names them) or a handle already loaded. Absent for a member that is a plant.


optional minUp?: number

Defined in: sdk/src/worldgen/rules.ts:74

The least the ground may face up for it to stand (0 to 1).


optional plant?: string

Defined in: sdk/src/worldgen/rules.ts:53

Or the kind of plant it is, by its name in the rules’ plants: several parts (a trunk and its crown), a cheaper mesh and a far version each, and the colourings the art gives it. It is grown a cell at a time like a PlacedFoliage, in place of the mesh and material above.


optional ring?: readonly [number, number]

Defined in: sdk/src/worldgen/rules.ts:60

How far from the anchor and at what angles (degrees, from +x toward +z), for a member.


optional scale?: readonly [number, number]

Defined in: sdk/src/worldgen/rules.ts:62


optional scaleFootprint?: boolean

Defined in: sdk/src/worldgen/rules.ts:66

Scale footprint and canopy with the model. Omitted preserves existing world-unit rules.


optional tags?: readonly string[]

Defined in: sdk/src/worldgen/rules.ts:80

Tags a zone may keep it out by, beside its recipe’s.


optional waterDepth?: number

Defined in: sdk/src/worldgen/rules.ts:76

How deep in water it may stand (reeds); 0 keeps it on dry ground.