mojira.dev
MC-200987

Title in bossbar breaks HUD opacity

Any HUD icons made to be transparent using a resource pack will have full opacity when a bossbar with a "name" value is visible to the player.

Steps to Reproduce:

  1. Enable the

[media]
  1. resource pack attached

  2. Create a boss bar

    /bossbar add opacity Opacity "Name"
  3. Make the bossbar visible to the player (Note the opacity of HUD icons)

    /bossbar set minecraft:opacity players @p
  4. Modify the bossbar to have an empty name (Note new opacity)

    /bossbar set minecraft:opacity name ""

Observed Results:

Once the bossbar is made visible to the player, the opacity of all HUD icons will be changed to full.

Expected Results:

The HUD icons would preserve their opacity no matter what the bossbar's name is set to.

Screenshots/Videos:

No bossbar:

[media]

Bossbar, no name set:

[media]

Bossbar, name set:

[media]

Video:

[media]

Notes:

This affecst the following:

  • All icons in the 'heart' directory

  • Both air.png & air_bursting.png

  • All 'hunger' related icon images

  • All 'armor' related icons

 

Linked issues

Attachments

Comments

migrated

Your game is modded so this is invalid

anthony cicinelli

@unknown how is this modified?

migrated

Not modded, just a resource pack with only icons.png modified.

migrated

Can confirm

[Mod] Jingy

Can confirm in 1.20.1 & 23w35a. I have attached a resource pack for 23w35a to replicate this behavior:

[media]

muzikbike

This seems fixed in 24w12a, can anyone confirm?

Lolothepro29

yeap, it's fixed

[Mod] Jingy

(Unassigned)

Community Consensus

UI

bossbar, hud, rendering

1.16.3, 1.20.1, 23w42a, 1.20.4

24w12a

Retrieved