XiaoMoMi Plugins
δΈ­ζ–‡η»΄εŸΊ
CustomNameplates
CustomNameplates
  • Plugin Wiki
    • πŸ€ CustomNameplates
      • ✏️ Text format
      • ❓️ Common Questions
      • πŸ“– Basic Font Knowledge
      • βš™οΈ Config
        • config.yml
        • bossbar.yml
        • actionbar.yml
        • bubble.yml
        • nameplate.yml
        • advance-data.yml
      • βž•οΈ Add New Contents
        • 🏷️ Nameplate
        • πŸ–ΌοΈ Background
        • πŸ’¬ Bubble
        • πŸ”Ά Image
      • πŸ…ΏοΈ Custom Placeholders
        • Switch Text
        • Background/Nameplate/Bubble Text
        • Shift Text
        • Conditional Text
        • Static Text
        • Vanilla Hud
      • πŸ…ΏοΈ Placeholders
      • βœ… Condition
      • 🐚 Command & Permission
      • 🀝 Compatibility
        • MagicCosmetics
      • πŸ” Examples
        • Stamina Bar
        • One Time Bedrock ActionBar
      • ⌨️ API
        • Basic Operations
      • πŸ“ CustomNameplates Update: Version 2.4 to 3.0 Overview
Powered by GitBook
On this page
  1. Plugin Wiki
  2. πŸ€ CustomNameplates
  3. βž•οΈ Add New Contents

πŸ–ΌοΈ Background

Previous🏷️ NameplateNextπŸ’¬ Bubble

Basics

Background is made up of three parts: left middle and right. I think it's easy to understand how the background works. The plugin obtains the width of your text and uses the binary search method to piece together a background image that adapts to the text.

Add a new background configuration

Background config contains 9 images and a YAML config file.

left:
  image: b0
  height: 14
  ascent: 7

right:
  image: b0
  height: 14
  ascent: 7

middle:
  height: 14
  ascent: 7
  1: b1
  2: b2
  4: b4
  8: b8
  16: b16
  32: b32
  64: b64
  128: b128

height/ascent:

  • height: The height of the character, measured in pixels. Can be negative. This tag is separate from the area used in the source texture and just rescales the displayed result.

  • ascent: The ascent of the character, measured in pixels. This value adds a vertical shift to the displayed result.