Starbound Spawnnpc Command


This command spawns an NPC of the specified type. You can optionally specify the following to further customize the NPC: level, a seed and customization parameters.

Spawnnpc Syntax


The syntax for the spawnnpc command is as follows:

/spawnnpc [species id] [type] [level] [seed] [parameters'] Admin Only

This command has the following arguments:

Species IDThe ID of the species of NPC to spawn.
TypeThe type of NPC to spawn.
LevelOptional. The level of the NPC to spawn. By default, this is 1.
SeedOptional. The seed of the NPC to spawn. A seed is a random number that determines the look/characteristics of an NPC (e.g. 172693656723).
Parameters'Optional. A JSON object for NPC customization, needs to be surrounded in single quotes ('). See examples for help.

Looking for other commands?

Search our database of 61 Starbound commands...

Yes Please

Spawnnpc Examples


Find below working examples of the spawnnpc command.


/spawnnpc desertvillager merchant

The above command would spawn a Desert Villager of the merchant type.

/spawnnpc desertvillager guard

The above command would spawn a Desert Villager of the guard type.

/spawnnpc desertvillager guard 2

This command is similar to the second example, but as we've specified 2 as a third argument, the Desert Villager would be level 2 (instead of the default, which is 1).