/npc spawn
Spawn NPCs
- Only runs when a player executes the command, not from the server console.
Syntax
/npc spawn <role> [--bodyRotation=<value>] [--count=<value>] [--flags=<value>] [--flock=<value>] [--headRotation=<value>] [--posOffset=<value>] [--position=<value>] [--radius=<value>] [--scale=<value>] [--speed=<value>] [--bypassScaleLimits] [--facingRotation] [--frozen] [--nonrandom] [--randomModel] [--randomRotation] [--spawnOnGround] [--test]/npc spawn
- Main commandthe command name that starts it all
- SubcommandSubcommand: an additional word after the command
- Requiredrequired, in a fixed order
- Optionaloptional, with --name=value
- FlagFlags without values
Arguments
/npc spawn <role> [--bodyRotation=<value>] [--count=<value>] [--flags=<value>] [--flock=<value>] [--headRotation=<value>] [--posOffset=<value>] [--position=<value>] [--radius=<value>] [--scale=<value>] [--speed=<value>] [--bypassScaleLimits] [--facingRotation] [--frozen] [--nonrandom] [--randomModel] [--randomRotation] [--spawnOnGround] [--test]
Spawn NPCs
| Argument | Type | Type | Description |
|---|---|---|---|
role | Required | The NPC role to spawn | |
--bodyRotation | Optional | Text Words, text, numbers, letters | Body rotation (yaw, pitch, roll) |
--count | Optional | Integer A whole number | Number of NPCs to spawn |
--flags | Optional | Text Words, text, numbers, letters | Debug flags (comma-separated) |
--flock | Optional | Text Words, text, numbers, letters | A flock asset reference or integer value for defining flock size |
--headRotation | Optional | Text Words, text, numbers, letters | Head rotation (yaw, pitch, roll) |
--posOffset | Optional | Text Words, text, numbers, letters | The position offset from the spawn location |
--position | Optional | Text Words, text, numbers, letters | Spawn position (x, y, z) |
--radius | Optional | Double A decimal number | The spawn radius for multiple NPCs |
--scale | Optional | Float A floating-point number | Model scale multiplier |
--speed | Optional | Double A decimal number | The initial movement speed |
--bypassScaleLimits | Flag | – | Bypass scale limits for the NPC |
--facingRotation | Flag | – | Face the player when spawning |
--frozen | Flag | – | Spawn the NPC frozen |
--nonrandom | Flag | – | Use seeded random number generator for repeatable positions for benchmarking |
--randomModel | Flag | – | Use a random player model |
--randomRotation | Flag | – | Use random rotation when spawning |
--spawnOnGround | Flag | – | Spawn the NPC on the ground |
--test | Flag | – | Test whether the NPC can be spawned at this position |
/npc spawn
Show spawn menu page
This command has no arguments.
Permissions
- Permission
hytale.npc.command.npc.spawn- 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.