Black Friday Bundles up to 67% off Everything else is 30% off. Ends December 3. See the bundles →

Plugins

Browse

NPC File

NPC File

View as Markdown ·

On this page

circle-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

YAML
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.
engine ENTITY, MODEL_ENGINE or BETTERMODEL.
entity-type PLAYER, MANNEQUIN or a mob, such as ZOMBIE.
skin The skin, see Skins. 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.
scale, glow, look-at-player, show-in-tab, collidable, pose See Edit NPC.
pushback true or false. Left out, the NPC follows the pushback setting in config.yml.
equipment One full item per slot, see Equipment.
visibility, interaction-cooldown See Edit NPC. -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.
limits The global cooldown, the uses per player and for everyone, and when they reset. See Cooldowns & Limits.
block-while-running true or false, see Edit NPC.
training-dummy true or false, see Edit NPC.
actions The left, right, any and proximity lists, see Click Actions.
proximity See Proximity Actions.
nameplate-offset, indicator See Nameplate & Indicator. The link to a name hologram is saved in the hologram, not here.
group The NPC's group, see Groups.
emote See Emotes.
dialogue The start step, typing speed, camera lock and every step's text and choices, see Dialogues.
properties, hitbox, appearance-rules See Appearance.
skin.hidden-layers The skin layers that are hidden, see Skin Layers.
look See Looking.
movement The mode, speed, wander, pause and follow settings and the waypoints, see Movement.
nameplate-hover, speech See Nameplate & Indicator and Speech Bubbles.

circle-exclamation

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.

My Cart
Spider

Your cart is empty

Looks like the spiders padded through here. Pick a plugin and it will show up here. Continue shopping