/npc command
Commands relating to NPCs. It comes from the server's built-in npc plugin. Read from the command registry of the Hytale 0.7.7 server.
- Usage 1
- Subcommands 46
- Permissions 47 nodes
- Changes by version 0
Usage
Who can run it by default: WorldEditor and up. Permission node: hytale.npc.command.npc.
/npc<name> is required, [--name=<name>] is optional, [--name] is a flag. Type it in chat with the slash, or in the server console.
Subcommands
| Usage | Also | What it does | Who by default |
|---|---|---|---|
/npc all [--distance=<distance>] | – | Spawn all NPC roles | WorldEditor and up |
/npc appearance <model> | – | Set the model of an NPC | WorldEditor and up |
/npc attack <attack…> | – | Set an attack sequence that will override the normal attack for this NPC | WorldEditor and up |
/npc attack clear | – | Clear overriding attack sequence | Admin only |
/npc benchmark [--roles] [--sensorsupport] [--seconds=<seconds>] | – | Collect role metrics | WorldEditor and up |
/npc blackboard | – | Commands relating to the NPC blackboard | WorldEditor and up |
/npc blackboard chunks | – | Get information about block positions in chunks | Admin only |
/npc blackboard chunk <position> | – | Get information about block positions for a specific chunk | Admin only |
/npc blackboard drop | – | Clear entire blackboard cache | Admin only |
/npc blackboard views | – | List all existing partial views of the blackboard | Admin only |
/npc blackboard view <chunk> | – | Get detailed info about a given blocktype view | Admin only |
/npc blackboard blockevents | – | Get info about the block event view | Admin only |
/npc blackboard entityevents | – | Get info about the entity event view | Admin only |
/npc blackboard resourceviews | – | List all existing resource views of the blackboard | Admin only |
/npc blackboard resourceview <chunk> | – | Get detailed info about a given resource view | Admin only |
/npc blackboard reserve <reserve> [--entity=<entity>] | – | Reserve or release an NPC | Admin only |
/npc blackboard reservation [--entity=<entity>] | – | Check on reservation status of an NPC | Admin only |
/npc clean | – | Remove all NPCs | ServerEditor and up |
/npc debug | – | Commands relating to NPC debug flags | WorldEditor and up |
/npc debug show | – | Show debug flags of selected NPCs | Admin only |
/npc debug set <flags> | – | Set debug flags of selected NPCs | Admin only |
/npc debug toggle <flags> | – | Toggle debug flags of selected NPCs | Admin only |
/npc debug defaults | – | Enable all default debug flags on selected NPCs | Admin only |
/npc debug clear | – | Clear debug flags on selected NPCs | Admin only |
/npc debug presets [--preset=<preset>] | – | Show all available debug flags and presets or show all flags for a specific preset | Admin only |
/npc dump [--json] | – | Dump all component info about an NPC | WorldEditor and up |
/npc flock | – | Add or remove NPCs from a flock | WorldEditor and up |
/npc flock leave | – | Remove all NPCs in view from their flocks | Admin only |
/npc flock grab | – | Pull all flockless NPCs in view into the player's flock | Admin only |
/npc flock join | – | Join the target NPC's flock | Admin only |
/npc flock playerleave | – | Leave the current flock | Admin only |
/npc freeze [--all] [--toggle] [--entity=<entity>] | – | Freeze an NPC | WorldEditor and up |
/npc give <item> | – | Give an item to an NPC | WorldEditor and up |
/npc give nothing | – | Clear the held item of an NPC | Admin only |
/npc path <instructions> | – | Set a transient path on the target NPC using a series of comma-separated rotations and distances | WorldEditor and up |
/npc path polygon <sides> [--length=<length>] | – | Set a transient path on the target NPC using a polygon with a defined number of sides | Admin only |
/npc role <role>/npc role | – | Change the role of an NPC | WorldEditor and up |
/npc runtests [--roles=<roles>] [--preset] [--pass] [--fail] [--abort] | – | Run a set of test NPCs | WorldEditor and up |
/npc sensorstats | – | Dump sensor related information | WorldEditor and up |
/npc spawn <role> [--count=<count>] [--radius=<radius>] [--flags=<flags>] [--speed=<speed>] [--nonrandom] [--position=<position>] [--posOffset=<posOffset>] [--headRotation=<headRotation>] [--bodyRotation=<bodyRotation>] [--randomRotation] [--facingRotation] [--flock=<flock>] [--test] [--spawnOnGround] [--frozen] [--randomModel] [--scale=<scale>] [--bypassScaleLimits]/npc spawn | – | Spawn NPCs | WorldEditor and up |
/npc step [--all] [--entity=<entity>] [--dt=<dt>] | – | Move the NPC behavior forward a set number of execution steps | WorldEditor and up |
/npc test | – | NPC test commands | WorldEditor and up |
/npc test probe | – | Test Probe classes with player at current position | Admin only |
/npc thaw [--all] [--entity=<entity>] | unfreeze | Unfreeze an NPC | WorldEditor and up |
/npc message <message> [--expiration=<expiration>] [--all] [--entity=<entity>] | – | Send a beacon message to an NPC | WorldEditor and up |
/npc descriptors | – | Save an NPC descriptors file out to disk in the server folder | WorldEditor and up |
Permissions
Each node is what the server checks before it runs the command. "Who by default" is worked out from the server code's rules: the groups a command's code names get its node, a group has everything the groups below it have, Admin has every node (*), and players start in Adventurer. The permissions list has every group and node.
To give a node to a group or a player, an admin runs /perm, for example /perm group add hytale:Builder hytale.npc.command.npc.attack.clear. Changes are stored in permissions.json.
| Node | Checked by | Who by default | Groups named in the code |
|---|---|---|---|
hytale.npc.command.npc | /npc | WorldEditor and up | WorldEditor |
hytale.npc.command.npc.all | /npc all | WorldEditor and up | – |
hytale.npc.command.npc.appearance | /npc appearance | WorldEditor and up | – |
hytale.npc.command.npc.attack | /npc attack | WorldEditor and up | – |
hytale.npc.command.npc.attack.clear | /npc attack clear | Admin only | – |
hytale.npc.command.npc.benchmark | /npc benchmark | WorldEditor and up | – |
hytale.npc.command.npc.blackboard | /npc blackboard | WorldEditor and up | – |
hytale.npc.command.npc.blackboard.chunks | /npc blackboard chunks | Admin only | – |
hytale.npc.command.npc.blackboard.chunk | /npc blackboard chunk | Admin only | – |
hytale.npc.command.npc.blackboard.drop | /npc blackboard drop | Admin only | – |
hytale.npc.command.npc.blackboard.views | /npc blackboard views | Admin only | – |
hytale.npc.command.npc.blackboard.view | /npc blackboard view | Admin only | – |
hytale.npc.command.npc.blackboard.blockevents | /npc blackboard blockevents | Admin only | – |
hytale.npc.command.npc.blackboard.entityevents | /npc blackboard entityevents | Admin only | – |
hytale.npc.command.npc.blackboard.resourceviews | /npc blackboard resourceviews | Admin only | – |
hytale.npc.command.npc.blackboard.resourceview | /npc blackboard resourceview | Admin only | – |
hytale.npc.command.npc.blackboard.reserve | /npc blackboard reserve | Admin only | – |
hytale.npc.command.npc.blackboard.reservation | /npc blackboard reservation | Admin only | – |
hytale.npc.command.npc.clean | /npc clean | ServerEditor and up | ServerEditor |
hytale.npc.command.npc.debug | /npc debug | WorldEditor and up | – |
hytale.npc.command.npc.debug.show | /npc debug show | Admin only | – |
hytale.npc.command.npc.debug.set | /npc debug set | Admin only | – |
hytale.npc.command.npc.debug.toggle | /npc debug toggle | Admin only | – |
hytale.npc.command.npc.debug.defaults | /npc debug defaults | Admin only | – |
hytale.npc.command.npc.debug.clear | /npc debug clear | Admin only | – |
hytale.npc.command.npc.debug.presets | /npc debug presets | Admin only | – |
hytale.npc.command.npc.dump | /npc dump | WorldEditor and up | – |
hytale.npc.command.npc.flock | /npc flock | WorldEditor and up | – |
hytale.npc.command.npc.flock.leave | /npc flock leave | Admin only | – |
hytale.npc.command.npc.flock.grab | /npc flock grab | Admin only | – |
hytale.npc.command.npc.flock.join | /npc flock join | Admin only | – |
hytale.npc.command.npc.flock.playerleave | /npc flock playerleave | Admin only | – |
hytale.npc.command.npc.freeze | /npc freeze | WorldEditor and up | – |
hytale.npc.command.npc.give | /npc give | WorldEditor and up | – |
hytale.npc.command.npc.give.nothing | /npc give nothing | Admin only | – |
hytale.npc.command.npc.path | /npc path | WorldEditor and up | – |
hytale.npc.command.npc.path.polygon | /npc path polygon | Admin only | – |
hytale.npc.command.npc.role | /npc role | WorldEditor and up | – |
hytale.npc.command.npc.runtests | /npc runtests | WorldEditor and up | – |
hytale.npc.command.npc.sensorstats | /npc sensorstats | WorldEditor and up | – |
hytale.npc.command.npc.spawn | /npc spawn | WorldEditor and up | – |
hytale.npc.command.npc.step | /npc step | WorldEditor and up | – |
hytale.npc.command.npc.test | /npc test | WorldEditor and up | – |
hytale.npc.command.npc.test.probe | /npc test probe | Admin only | – |
hytale.npc.command.npc.thaw | /npc thaw | WorldEditor and up | – |
hytale.npc.command.npc.message | /npc message | WorldEditor and up | – |
hytale.npc.command.npc.descriptors | /npc descriptors | WorldEditor and up | – |
Changes by version
No change to /npc in the updates compared so far: 0.8.0-pre.7 (pre-release), 0.8.0-pre.6 (pre-release) and 0.8.0-pre.5 (pre-release).
Checked on Hytale 0.7.7, data from 28 November 2026. The page is rebuilt from the server itself with each update.
More
- All 172 Hytale commands
- Hytale permissions list: every group and permission node
- How to run a Hytale server, and hosts that run one for you