Config
A spawner that finds a suitable location to place a prefab.
Type
This field controls the type, it must be set to the constant value "PrefabSpawner" to function as this type.
Type information: Constant value: PrefabSpawner
PrefabKey
Define the variable name for the prefab that this spawner places that can be referenced by other conditions and actions.
Type information: (Nullable) String
Prefab
The prefab asset(s) that the spawner will randomly choose from and attempt to place.
Type information:
(Nullable) Either String or PrefabListAsset
Reference to a PrefabListAsset asset
Rotations
Candidate prefab rotations; one is chosen at random for each placement attempt.
Type information:
(Nullable) Array of the type: Any one of the following String:
| Name | Description |
|---|---|
"Rotation0" | |
"Rotation90" | |
"Rotation180" | |
"Rotation270" |
MaxHeightDelta
Maximum terrain height difference allowed across the prefab footprint; placement is rejected when exceeded.
Type information: Integer defaults to: 4
Mask
A PlacementMask determining the types of blocks and fluids that the prefab can place onto. Can be removed to allow placement on any block or fluid.
Type information:
(Nullable) A mask that determines which blocks and fluids a given piece of content can be placed on.
PlacementMask with the following properties:
| Key | Type | Description | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Type | Any one of the following String (defaults to BlocksAndFluids):
PlacementType
| The type of placement that this mask controls. | ||||||||
| Blocks | (Nullable) Array of the type: Either String or BlockTypeListAsset | List of BlockTypeList assets to add to the blocks mask. Can be removed to allow placement on any block. Can be empty to prevent placement on any block. | ||||||||
| Fluids | (Nullable) Array of the type: Either String or BlockTypeListAsset | List of BlockTypeList assets to add to the fluids mask. Can be removed to allow placement on any fluid. Can be empty to prevent placement on any fluid. |
