/prefabspawner set
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
Also available as: /pspawner set
Spelling
/prefabspawner set <prefab> [--defaultWeight=<value>] [--fitHeightmap=<value>] [--inheritHeightCheck=<value>] [--inheritSeed=<value>] [--position=<value>] [--world=<value>]
- Main commandthe command name that starts it all
- SubcommandSubcommand: an additional word after the command
- Requiredrequired, in a fixed order
- Optionaloptional, with --name=value
Arguments
| Argument | Type | Type | Description |
|---|---|---|---|
prefab | Required | Text Words, text, numbers, letters | The prefab path to set |
--defaultWeight | Optional | Double A decimal number | The default weight for prefabs |
--fitHeightmap | Optional | Boolean A "true" or "false" input | Whether to fit the heightmap (true/false) |
--inheritHeightCheck | Optional | Boolean A "true" or "false" input | Whether to inherit height check (true/false) |
--inheritSeed | Optional | Boolean A "true" or "false" input | Whether to inherit the seed (true/false) |
--position | Optional | Relative Block Position A position with three integer coordinates, representing a block's location in world space. Each argument can be prefixed with a tilde (~) in order to specify it as relative to a point (usually yourself) 3 consecutive values | The position of the prefab spawner (or raycast from player if not specified) |
--world | Optional | World A world folder name | The world to operate this command on |
Permissions
- Permission
hytale.prefabspawnermodule.command.prefabspawner.set- Default group
- WorldEditorfrom the parent command
The groups build on one another: Adventurer, Builder, WorldEditor, ServerEditor, Admin. Higher groups inherit the permissions of lower ones; new players are Adventurers, and admins (OP) can do everything.