NPCs
An NPC is a clickable character defined in npcs.yml. Create one with /mchub npc create (id) [skin player name] where you stand, or in /mchub admin > NPCs.
| Key | Meaning |
|---|---|
type | mannequin (the normal one) or armorstand. Default is npcs.default-type |
name, lines | The name above the NPC and the lines under it (MiniMessage, placeholders and {servers} work) |
skin | A player name, or texture:(base64). Blank is the default skin |
action | What a click does (see Actions), for example selector or parkour:lobby |
permission | Optional permission to use it |
look-at-players | Turn towards players within 8 blocks |
item | An item held in the hand |
color | Armor color (hex). Armor stands use the theme color when blank; a mannequin only gets armor when you set one |
Two types#
- Mannequin: a real player-looking entity with the skin, a name and a line of text under it. It needs Paper 1.21.9 or newer.
- Armor stand: a figure made from an armor stand, with a skin head and colored armor. It works on every supported version, and mcHub falls back to it automatically when the server has no mannequin entity.
Clicking or hitting an NPC runs its action. NPCs cannot be damaged and are removed when the plugin stops. Commands: /mchub npc list|create|delete|skin|action|name|permission|item|move|tp.