Skip to content
NPCs & Creatures

/npc role

Change the role of an NPC

Syntax

  • /npc role <role> [--entity=<value>] [--world=<value>]
  • /npc role [--entity=<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

/npc role <role> [--entity=<value>] [--world=<value>]

Change the role of an NPC

ArgumentTypeTypeDescription
roleRequired

NPC Role

An NPC role template name

Look up in the mob database

The role to assign to the NPC

--entityOptional

UUID

A UUID representing an entity id

The entity to target

--worldOptional

World

A world folder name

The world to operate this command on

/npc role [--entity=<value>] [--world=<value>]

Display the role of an NPC

ArgumentTypeTypeDescription
--entityOptional

UUID

A UUID representing an entity id

The entity to target

--worldOptional

World

A world folder name

The world to operate this command on

Permissions

Permission
hytale.npc.command.npc.role
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 role — Hytale command reference | ZAP-Hosting