Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-183943

Default boss bar name color is white instead of the boss bar color

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 20w20b, 20w21a, 20w22a, 1.16 Pre-release 1, 1.16 Pre-release 2, 1.16 Pre-release 3, 1.16 Pre-release 4, 1.16 Pre-release 5, 1.16 Pre-release 6, 1.16 Pre-release 7, 1.16 Pre-release 8, 1.16 Release Candidate 1, 1.16, 1.16.1, 20w27a, 20w28a, 20w29a, 20w30a, 1.16.2 Pre-release 1, 1.16.2 Pre-release 2, 1.16.2 Pre-release 3, 1.16.2 Release Candidate 1, 1.16.2 Release Candidate 2, 1.16.2, 1.16.3 Release Candidate 1, 1.16.3, 1.16.4 Pre-release 1, 1.16.4 Pre-release 2, 1.16.4 Release Candidate 1, 1.16.4, 20w45a, 20w46a, 20w48a, 20w49a, 20w51a, 21w03a, 1.16.5 Release Candidate 1, 1.16.5, 21w05a, 21w05b, 21w06a, 21w07a, 21w08a, 21w08b, 21w10a, 21w11a, 21w13a, 21w14a, 21w15a, 21w16a, 21w17a, 21w18a, 21w19a, 21w20a, 1.17 Pre-release 1, 1.17 Pre-release 4, 1.17 Release Candidate 1, 1.17 Release Candidate 2, 1.17, 1.17.1 Pre-release 1, 1.17.1, 21w39a, 21w41a, 21w42a, 1.20.4, 23w51b, 24w07a, 1.20.5, 1.20.6, 1.21
    • Confirmed
    • Commands
    • Low
    • Platform

      The bug

      When creating a boss bar with a color other than white, the boss bar name still shows as white instead of the boss bar color. This does not happen in 1.15.2 and older versions.

      How to reproduce

      1. /bossbar add bossbar "Boss Bar"
      2. /bossbar set bossbar color yellow
      3. /bossbar set bossbar players @s

        The boss bar name shows as white instead of the boss bar color.

      Other information

      If sendCommandFeedback is set to true and the last command from the procedure is run, it can be noticed that the boss bar name shown in chat shows the correct color.

      Workaround

      The color property in JSON text can be used in boss bar names for them to show as the boss bar color. For example, instead of "Boss Bar" as the name for a yellow boss bar, the text below can be used instead:

      {"text":"Boss Bar","color":"yellow"}

        1. Boss_Bars_in_1.16.png
          354 kB
          user-a4a49
        2. Boss_Bars_in_1.15.2.png
          358 kB
          user-a4a49

            Unassigned Unassigned
            zTxrbq [Mod] turbo
            Votes:
            9 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              CHK: