mojira.dev
MC-183943

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

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"}

Linked issues

Attachments

Comments 1

/bossbar set bossbar color changes only the color of the bar. (7 colors to choose from).

Whereas the JSON text applies to text simirarly to scoreboards, where you can change to 16 different colors.

Not sure if intended or not.

user-a4a49

[Mod] turbo

(Unassigned)

Confirmed

Platform

Low

Commands

boss-bar, bossbar, color, json, json-text, white

20w20b, 20w21a, 20w22a, 1.16 Pre-release 1, 1.16 Pre-release 2, ..., 1.20.5, 1.20.6, 1.21, 1.21.4, 1.21.8

Retrieved