mojira.dev
MC-72687

There are no shadows on text displayed within the action bar

The Bug:

There are no shadows on text displayed within the action bar.

This is an issue because the text can be quite difficult to read, so having a shadow displayed on all text within the action bar would resolve this problem.

Steps to Reproduce:

  • Display some text on the action bar and look at it closely.

/title @a actionbar {"text":"MC-72687","color":"white"}
  • Take note as to whether or not there are any shadows on text displayed within the action bar.

Observed Behavior:

There are no shadows on text displayed within the action bar.

Expected Behavior:

There would be shadows on text displayed within the action bar.

Code Analysis:

Code analysis by @unknown can be found in this comment.

Linked issues

Attachments

Comments 30

its Cops and Crims on hypixel, isn't it? ;D

Could be a problem on their side, because its not the vanilla minecraft, but a "modded" server.

@Thijmen F

Sure, because servers control client-side text rendering...

The action bar doesn't exist in vanilla, therefore, not vanilla's problem.

@Carl Nathans

Yes, because that screen is a modded minecraft client... PLS. It IS minecraft. The action bar EXIXTS. Try to right click a Horse, for example.

Carl is right. There is no action bar in vanilla Minecraft. The vanilla Minecraft equivalent is a tooltip which can be disabled in options.txt.

Invalid as it relates to a modified server.

20 more comments

This ticket also relates to MC-241520.

Can confirm in 1.19 release candidate 2. One line fix in the InGameHud class (Yarn mappings):

// Current render call
textRenderer.draw(matrices, this.overlayMessage, (float)(-n / 2), -4.0f, k | m);

// Render call that draws the text shadow
textRenderer.drawWithShadow(matrices, this.overlayMessage, (float)(-n / 2), -4.0f, k | m);

This issue has been fixed in 22w24a.

[media]

I have a concern with this being fixed in 22w24a, many datapack creators will use custom fonts with /title actionbar to display a custom HUD without the shadow getting in the way, this being fixed will leave no method to do this at the current moment

 

I'd suggest either the ability to enable/disable the shadow inside the /title command, or the ability to set a font to have a shadow or not have a shadow in the font's json file

Suggestions should be submitted to the Feedback website.

Tim Van Milkeush

Avoma

(Unassigned)

Confirmed

Important

Accessibility, Text, UI

Minecraft 1.8, Minecraft 1.10.2, Minecraft 16w41a, Minecraft 1.13.2, Minecraft 19w08b, ..., 1.18.2, 22w17a, 22w18a, 1.19 Release Candidate 2, 1.19

22w24a

Retrieved