Skip to content

Holograms over NPCs ​

An NPC can carry text over it: a name, a rank, a "click me". This uses FancyHolograms, which must be installed.

Setting it up ​

It is set in plugins/AnimatedBB/npcs.yml, under the NPC, and read again with /abb reload:

yaml
npcs:
  guard:
    hologram:
      enabled: true
      lines:
        - "<gold><b>Guard"
        - "<gray>Right click to talk"
      offset-y: 2.5            # height over the NPC
      scale: 1.0
      billboard: CENTER        # CENTER, FIXED, HORIZONTAL or VERTICAL
      text-alignment: CENTER   # LEFT, CENTER or RIGHT
      background: transparent  # transparent, #RRGGBB, #AARRGGBB or a colour name
      text-shadow: false
      see-through: false
      yaw: 0
      pitch: 0
      brightness:
        block: -1              # 0 to 15, or -1 for the world's light
        sky: -1
      visibility-distance: -1  # blocks; -1 FancyHolograms decides
      update-text-interval: -1 # ticks between placeholder refreshes, -1 never

Defaults for new NPCs ​

config.yml, under defaults.hologram: whether new NPCs have one, its height, billboard, shadow, background, alignment, scale and rotation.

HologramBB

For holograms with animations and reactions per player, use HologramBB: /hbb edit <id> linkWithModel <npc> stands one on the NPC's model, right over its head, and it follows the NPC. See On an AnimatedBB model.