# NPCs

> **Info:**
Every NPC is its own file in the npcs folder, named after its id.

## Add an NPC

Stand where the NPC should be and run `/pnpc create <id> [type]`. Without a type it is a player NPC with the default skin, named after its id.

<figure><img src="../../.gitbook/assets/npcs/new-npc.png" alt="" width="563"><figcaption><p>NPCs (New NPC)</p></figcaption></figure>

The lime pane in **Editor > NPCs** creates one where you stand too, with a generated id such as `npc_1234`, and opens its editor straight away. Rename it later from the editor or with `/pnpc edit <id> rename`, though other plugins that use the old id need the new one. Use the command when the id matters to you.

## The NPC List

Every NPC is listed by id, with whether it is enabled. The group filter shows only the NPCs of one group, and the state filter shows all NPCs, only the enabled ones, only the disabled ones or only the ones with a setup problem. An NPC with a setup problem has a red line in its tooltip saying what is wrong, the same list as `/pnpc problems`. Left-click an NPC to edit it, right-click to teleport to it.

<figure><img src="../../.gitbook/assets/npcs/npc-list.png" alt="" width="563"><figcaption><p>NPCs (banker)</p></figcaption></figure>

## Navigation

| Features | Description |
| --- | --- |
| [Display Name](edit-npc.md#display-name) | The NPC's label in the editor, lists and messages. |
| [Entity Type](edit-npc.md#entity-type) | A player, a mannequin or any living mob. |
| [Skin](../skins.md) | The skin of a player NPC. |
| [Model](../models.md) | A ModelEngine or BetterModel model instead of the entity. |
| [Name Hologram](../../features/nameplate-and-indicator.md#name-hologram) | The name above the NPC, a linked PhoenixHolograms hologram. |
| [Click Actions](edit-npc.md#click-actions) | Click and proximity actions, click cooldown, block while running. |
| [Dialogue](../../features/dialogues.md) | A conversation with choices. |
| [Appearance](edit-npc.md#appearance) | Pose, scale, glow, equipment, emote, look, collision, per-player looks and nameplate. |
| [Movement](../../features/movement.md) | Paths, wandering, following, mounting and guarding. |
| [Visibility](edit-npc.md#visibility) | Who sees the NPC, from how far and on which servers. |
| [Enabled](edit-npc.md#enabled) | Turn the NPC on or off. |
| [Group](../../features/groups.md) | Put the NPC in a group. |
| [Clone](edit-npc.md#clone) | Copy the NPC to where you stand. |
| [Tools](edit-npc.md#tools) | Move Here, Center, Face Me, Teleport to NPC and Refresh. |
| [Delete](edit-npc.md#delete) | Delete the NPC. |

Source: https://www.phoenixplugins.com/docs/phoenix-npcs/main-features/npcs