BiomePrefabContent
Define a set of one or more prefabs that should be generated in the target biome(s)
Type
This field controls the type, it must be set to the constant value "BiomePrefab" to function as this type.
Type information: Constant value: BiomePrefab
Prefabs
Weighted list of prefab paths to randomly choose from
Type information:
(Nullable) Array of the type:
Entry with the following properties:
| Key | Type | Description |
|---|---|---|
| Path | (Nullable) String defaults to: | The path of the prefab |
| Weight | Number defaults to: 1.0 | The random chance of the path being chosen |
BlockMask
The types of blocks that the prefab's blocks can replace
Type information:
(Nullable) Defines a block mask that filters which blocks and fluids can be replaced, using include and exclude rules to control placement targets
BlockMask with the following properties:
| Key | Type | Description | |||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Include | (Nullable)
Rule
| Set of block and fluid types that should be included by this mask | |||||||||||||||
| Exclude | (Nullable)
Rule
| Set of block and fluid types that should be excluded by this mask |
NoiseMask
The horizontal noise mask for the prefab placement position
Type information:
(Nullable) Defines a noise mask that uses fractal simplex noise to control placement density within a configurable threshold range
NoiseMask with the following properties:
| Key | Type | Description | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Seed | (Nullable) String defaults to: Default_Mask | Seed for the mask noise | |||||||||
| Scale | Number defaults to: 128.0 | The scale of the mask noise | |||||||||
| Octaves | Integer defaults to: 2 | The number of octaves of the noise to use | |||||||||
| Lacunarity | Number defaults to: 4.0 | The cumulative frequency multiplier for each noise octave | |||||||||
| Persistence | Number defaults to: 0.6 | The cumulative gain multiplier for each noise octave | |||||||||
| Density | (Nullable)
FloatRange
| Threshold range for the mask. Noise values outside the range result in the prefab position being occluded |
HeightMask
The height range mask for the prefab placement position
Type information:
(Nullable) Defines a height mask that restricts placement to a specific vertical range within the world
HeightMask with the following properties:
| Key | Type | Description |
|---|---|---|
| Min | Integer defaults to: 0 | The inclusive minimum height of the mask range |
| Max | Integer defaults to: 319 | The inclusive maximum height of the mask range |
OffsetY
The vertical offset for the prefab placement position
Type information: Integer defaults to: 0
Rotations
The rotation directions that the prefab can be randomly placed in
Type information:
(Nullable) Array of the type: Any one of the following String:
| Name | Description |
|---|---|
"Rotation0" | |
"Rotation90" | |
"Rotation180" | |
"Rotation270" |
Environment
The environment to place where the prefab is placed
Type information:
(Nullable) Environment
PointGrid
The point grid for the prefab
Type information:
(Nullable) Defines a point grid that distributes placement positions across the world using a seeded cell-based layout with configurable scale, jitter, and density
PointGrid with the following properties:
| Key | Type | Description | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Seed | (Nullable) String defaults to: Default_Grid | Seed for the point grid | |||||||||
| Scale | Number defaults to: 16.0 | Scale of the point grid | |||||||||
| Jitter | Number defaults to: 0.75 | Jitter of the points in the grid | |||||||||
| Density | (Nullable)
FloatRange
| Density threshold for the point grid |
FitHeightmap
Whether the prefab should fit to the heightmap
Type information: Boolean defaults to: false
Submerge
Whether the prefab should be submerged if placed underwater
Type information: Boolean defaults to: false
BaseChecks
List of prefab base-check rules
Type information:
(Nullable) Array of the type: Define additional height checks around the base of the prefab to prevent it placing on uneven ground
PrefabBaseCheck with the following properties:
| Key | Type | Description |
|---|---|---|
| BaseScale | (Nullable) Either Number defaults to: 1.0 or String that matches the pattern: ^(-?Infinity|NaN)$ | The size of the prefab's base as a proportion of its horizontal dimensions |
| PrefabSize | Integer defaults to: 20 | The minimum size of the prefab that this base check applies to |
| HeightTolerance | Integer defaults to: 2 | The amount of terrain height difference allowed around the prefab's base before the location is deemed too uneven |
ParentMask
Define which blocks the prefab can be placed on
Type information:
(Nullable) Defines a block mask that filters which blocks and fluids can be replaced, using include and exclude rules to control placement targets
BlockMask with the following properties:
| Key | Type | Description | |||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Include | (Nullable)
Rule
| Set of block and fluid types that should be included by this mask | |||||||||||||||
| Exclude | (Nullable)
Rule
| Set of block and fluid types that should be excluded by this mask |
