Skip to content
NPCs & CreaturesPlayer only

/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

ArgumentTypeTypeDescription
roleRequired

NPC Role

An NPC role template name

Look up in the mob database

The NPC role to spawn

--bodyRotationOptional

Text

Words, text, numbers, letters

Body rotation (yaw, pitch, roll)

--countOptional

Integer

A whole number

Number of NPCs to spawn

--flagsOptional

Text

Words, text, numbers, letters

Debug flags (comma-separated)

--flockOptional

Text

Words, text, numbers, letters

A flock asset reference or integer value for defining flock size

--headRotationOptional

Text

Words, text, numbers, letters

Head rotation (yaw, pitch, roll)

--posOffsetOptional

Text

Words, text, numbers, letters

The position offset from the spawn location

--positionOptional

Text

Words, text, numbers, letters

Spawn position (x, y, z)

--radiusOptional

Double

A decimal number

The spawn radius for multiple NPCs

--scaleOptional

Float

A floating-point number

Model scale multiplier

--speedOptional

Double

A decimal number

The initial movement speed

--bypassScaleLimitsFlag–

Bypass scale limits for the NPC

--facingRotationFlag–

Face the player when spawning

--frozenFlag–

Spawn the NPC frozen

--nonrandomFlag–

Use seeded random number generator for repeatable positions for benchmarking

--randomModelFlag–

Use a random player model

--randomRotationFlag–

Use random rotation when spawning

--spawnOnGroundFlag–

Spawn the NPC on the ground

--testFlag–

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.

Back to command reference

/npc spawn — Hytale command reference | ZAP-Hosting