The bug
When rendering text in the action bar with a TrueType font, the text is drawn on top of an open GUI. The test action bar message appears fully lit despite being behind the inventory's background, as visible in the attached screenshot.
Specifically, this only occurs if the action bar is the last element to be drawn before the GUI. If a chat message or subtitle is visible, the issue does not occur. Based on analyzing the source code, the chat and subtitles are drawn after the action bar, so it's likely related to the action bar being the last element drawn.
Steps to reproduce
Apply the attached resource pack.
Run the following command in a command block so there is no chat message, or quickly press F3 + D after to clear the chat:
title @a actionbar {text:"test",font:"test:hud"}
Open an inventory β for example, by pressing E.
Notice that when there is no chat message or subtitle showing, the text renders on top of the background.
Observed behavior
The action bar's TTF text will render in front; any non-TTF text will be rendered properly.
Expected behavior
The action bar would render behind the GUI's background.
Linked issues
Attachments
Comments 2
Thank you for your report!
We are tracking this issue in MC-298710, so this ticket is being resolved and linked as a duplicate.
If you would like to add a vote or provide any additional information to the main ticket, it would be appreciated.
If you havenβt already, please make use of the search feature to see whether an issue has already been reported.
Quick Links:
π Bug Tracker Guidelines β π¬ Community Support β π§ Mojang Support (Technical Issues) β π§ Microsoft Support (Account Issues)
π Project Summary β βοΈ Feedback and Suggestions β π Game Wiki
Here is a version of the example resource pack that is properly zipped.