# NPC File

> **Info:**
Everything on this page can be set from the in-game editor. The files are only worth opening for a bulk change, or to copy NPCs between servers. Run /pnpc reload after saving them.

## Where the Files Are

Each NPC is one file in the npcs folder, named after its id. The plugin writes only the values that differ from a new NPC, so a plain NPC stays short. Anything left out of the file takes its default.

## Example

```yml
identifier: guide
display-name: Guide
location:
  world: world
  x: 10.5
  y: 64.0
  z: -3.5
  yaw: 90.0
  pitch: 0.0
look-at-player: true
actions:
  right:
  - '[DIALOGUE]'
group: spawn
dialogue:
  start: hello
  steps:
    hello:
      text:
      - '&7Welcome to the server, %player%!'
      choices:
      - text: '&aTake me to survival'
        actions:
        - '[SERVER] survival'
      - text: '&eTell me more'
        next: more
    more:
      text:
      - '&7Ask a staff member anytime.'
```

## Keys

| Key | Description |
| --- | ----------- |
| **identifier**, **display-name**, **location**, **enabled** | The NPC itself. See [Edit NPC](../main-features/npcs/edit-npc.md). |
| **engine** | `ENTITY`, `MODEL_ENGINE` or `BETTERMODEL`. |
| **entity-type** | `PLAYER`, `MANNEQUIN` or a mob, such as `ZOMBIE`. |
| **skin** | The skin, see [Skins](../main-features/skins.md). The textures are stored here once looked up, so set a skin from the editor or `/pnpc edit <id> skin` rather than typing a name here. |
| **model** | The model id and its idle and click animations, see [Models](../main-features/models.md). |
| **scale**, **glow**, **look-at-player**, **show-in-tab**, **collidable**, **pose** | See [Edit NPC](../main-features/npcs/edit-npc.md). |
| **pushback** | `true` or `false`. Left out, the NPC follows the [pushback](main-configuration.md#pushback) setting in config.yml. |
| **equipment** | One full item per slot, see [Equipment](../main-features/equipment.md). |
| **visibility**, **interaction-cooldown** | See [Edit NPC](../main-features/npcs/edit-npc.md). -1 uses the default from config.yml. |
| **visibility.conditions**, **visibility.hidden-players** | The show conditions, and the UUIDs of the players the NPC is hidden from. See [Visibility](../features/visibility.md). |
| **limits** | The global cooldown, the uses per player and for everyone, and when they reset. See [Cooldowns & Limits](../main-features/cooldowns-and-limits.md). |
| **block-while-running** | `true` or `false`, see [Edit NPC](../main-features/npcs/edit-npc.md#block-while-running). |
| **training-dummy** | `true` or `false`, see [Edit NPC](../main-features/npcs/edit-npc.md#training-dummy). |
| **actions** | The `left`, `right`, `any` and `proximity` lists, see [Click Actions](../main-features/click-actions.md). |
| **proximity** | See [Proximity Actions](../main-features/proximity-actions.md). |
| **nameplate-offset**, **indicator** | See [Nameplate & Indicator](../features/nameplate-and-indicator.md). The link to a name hologram is saved in the hologram, not here. |
| **group** | The NPC's group, see [Groups](../features/groups.md). |
| **emote** | See [Emotes](../features/emotes.md). |
| **dialogue** | The start step, typing speed, camera lock and every step's text and choices, see [Dialogues](../features/dialogues.md). |
| **properties**, **hitbox**, **appearance-rules** | See [Appearance](../main-features/appearance.md). |
| **skin.hidden-layers** | The skin layers that are hidden, see [Skin Layers](../main-features/skins.md#skin-layers). |
| **look** | See [Looking](../features/looking.md). |
| **movement** | The mode, speed, wander, pause and follow settings and the waypoints, see [Movement](../features/movement.md). |
| **nameplate-hover**, **speech** | See [Nameplate & Indicator](../features/nameplate-and-indicator.md#show-on-hover) and [Speech Bubbles](../features/speech-bubbles.md). |

> **Warning:**
An NPC whose world does not exist waits for that world. An NPC with no location at all, or a file that is not valid YAML, is skipped and reported in the console.

Source: https://www.phoenixplugins.com/docs/phoenix-npcs/configurations/npc-file