/prefabspawner
misc

View and edit properties on a prefab spawner block

Syntax

/prefabspawner [position]
RequiredOptional

Parameters

positionOptionalposition

The position of the prefab spawner (or raycast from player if not specified)

Subcommands

/prefabspawner get

<get>: Print the properties of the target prefab spawner block

/prefabspawner set

<prefabSpawner>: Sets a prefab path for a BlockSpawner block you look at | [heightMap]: Sets if a prefab should attempt to follow the heightmap | [inheritSeed]: Sets if a prefab should inherit its parent's worldgen-id | [inheritHeightCheck]: Sets if a prefab should use its parent's HeightCondition | [defaultWeight] Sets the default weight that is assigned to prefabs that do not have a weight mapping assigned

Parameters:

defaultWeight- The default weight for prefabs
prefab- The prefab path to set
/prefabspawner set.fitHeightmap

Whether to fit the heightmap (true/false)

/prefabspawner set.inheritHeightCheck

Whether to inherit height check (true/false)

/prefabspawner set.inheritSeed

Whether to inherit the seed (true/false)

/prefabspawner weight

Sets the weight of an individual prefab file when the spawner's path points to a folder of prefabs | <prefab> The name of the prefab file excluding the file extension | <weight> The weight value to assign to the prefab or -1 to remove the weight

Parameters:

prefab- The prefab path
weight- The weight (negative to remove)

Server Messages

get.path

Current Prefab Path: {prefab}

get.fitsHeightmap

- FitHeightmap = {fitHeightmap}

get.inheritsSeed

- InheritSeed = {inheritSeed}

get.inheritsHeightCheck

- InheritHeightCheck = {inheritHeightCheck}

get.defaultWeight

- DefaultWeight: {weight}

get.weights

- PrefabWeights: {weights}

set

Set PrefabSpawner!

weight.remove

Removed weight for Prefab {prefab}

weight.set

Set weight for Prefab {prefab} to {weight}