You can disable NPC spawning (creatures, monsters, animals) per world. This is useful for pure building servers or PvP arenas.
How to Disable NPCs via Configuration
-
Stop the Server
Stop your server via the dashboard. -
Open the World Configuration
Connect to your server via SFTP and navigate to:/universe/worlds/<worldname>/config.jsonReplace
<worldname>with the name of your world (e.g.,default). -
Change NPC Spawning
Find theIsSpawningNPCsetting and change the value:"IsSpawningNPC": falsetrue- NPCs spawn (default)false- No NPCs spawn
-
Start the Server
Start your server for the changes to take effect.
How to Disable NPCs via Command
With a command, you can toggle NPC spawning while the server is running. The change is saved directly in the world configuration.
-
Open the Dashboard
Open the dashboard of your Hytale server. -
Enter the Command
Enter the following command in the console:spawning disable --world defaultReplace
defaultwith the name of your world. The server confirms withSpawning disabled for world "default". To enable spawning again, use:spawning enable --world default
Admins can also control NPC spawning in-game. Without --world, the command applies to the world you are currently in:
/spawning disable
Alternatively, world settings spawningnpc set false --world default also works. Use spawning --help to show all subcommands.
Remove Already Spawned NPCs
Disabling only affects future spawning. Already existing NPCs will remain. To remove the NPCs of a world, enter in the console:
npc clean --world default --confirm
The --confirm flag is required, without it the server does not run the command. In-game, the command is /npc clean --confirm.
