Skip to content
Building Tools

/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

Also available as: /pspawner weight

Spelling

  • /prefabspawner weight <prefab> <weight> [--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

ArgumentTypeTypeDescription
prefabRequired

Text

Words, text, numbers, letters

The prefab path

weightRequired

Float

A floating-point number

The weight (negative to remove)

--positionOptional

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)

--worldOptional

World

A world folder name

The world to operate this command on

Permissions

Permission
hytale.prefabspawnermodule.command.prefabspawner.weight
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.

Back to command reference

/prefabspawner weight — Hytale command reference | ZAP-Hosting