Using it

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.

KeyMeaning
typemannequin (the normal one) or armorstand. Default is npcs.default-type
name, linesThe name above the NPC and the lines under it (MiniMessage, placeholders and {servers} work)
skinA player name, or texture:(base64). Blank is the default skin
actionWhat a click does (see Actions), for example selector or parkour:lobby
permissionOptional permission to use it
look-at-playersTurn towards players within 8 blocks
itemAn item held in the hand
colorArmor 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.