RecipeMember
此内容尚不支持你的语言。
Defined in: sdk/src/worldgen/rules.ts:44
One kind of thing in a recipe.
Properties
Section titled “Properties”
optionalarc?: readonly [number,number]
Defined in: sdk/src/worldgen/rules.ts:61
attach?
Section titled “attach?”
optionalattach?:"align"|"upright"
Defined in: sdk/src/worldgen/rules.ts:72
Upright, or leaning with the ground.
canopy?
Section titled “canopy?”
optionalcanopy?: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.
chance?
Section titled “chance?”
optionalchance?:number
Defined in: sdk/src/worldgen/rules.ts:78
The chance it is placed at all, for a member that may be left out.
count?
Section titled “count?”
optionalcount?: readonly [number,number]
Defined in: sdk/src/worldgen/rules.ts:58
How many of it (the anchor is always one).
optionalfar?: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.
optionaltent?:boolean
u0:
number
u1:
number
v0:
number
v1:
number
footprint
Section titled “footprint”footprint:
number
Defined in: sdk/src/worldgen/rules.ts:64
Radius it takes on the ground: world units by default, model units with scaleFootprint.
grounding?
Section titled “grounding?”
optionalgrounding?: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.
interactive?
Section titled “interactive?”
optionalinteractive?: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.
material?
Section titled “material?”
optionalmaterial?:string|number
Defined in: sdk/src/worldgen/rules.ts:54
optionalmesh?: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.
minUp?
Section titled “minUp?”
optionalminUp?:number
Defined in: sdk/src/worldgen/rules.ts:74
The least the ground may face up for it to stand (0 to 1).
plant?
Section titled “plant?”
optionalplant?: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.
optionalring?: 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.
scale?
Section titled “scale?”
optionalscale?: readonly [number,number]
Defined in: sdk/src/worldgen/rules.ts:62
scaleFootprint?
Section titled “scaleFootprint?”
optionalscaleFootprint?:boolean
Defined in: sdk/src/worldgen/rules.ts:66
Scale footprint and canopy with the model. Omitted preserves existing world-unit rules.
optionaltags?: readonlystring[]
Defined in: sdk/src/worldgen/rules.ts:80
Tags a zone may keep it out by, beside its recipe’s.
waterDepth?
Section titled “waterDepth?”
optionalwaterDepth?:number
Defined in: sdk/src/worldgen/rules.ts:76
How deep in water it may stand (reeds); 0 keeps it on dry ground.