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:
Enable the
resource pack attached
Create a boss bar
/bossbar add opacity Opacity "Name"
Make the bossbar visible to the player (Note the opacity of HUD icons)
/bossbar set minecraft:opacity players @p
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


@unknown how is this modified?

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

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

This seems fixed in 24w12a, can anyone confirm?

yeap, it's fixed
Your game is modded so this is invalid