mojira.dev
MC-141323

Turning chat colors off doesn't affect text in hoverEvent

The bug

Run the following command with chat colors turned on:

/tellraw @a {"text":"\u00A7d⬛\u00A7b⬛\u00A7c⬛\u00A7a⬛\u00A73⬛","hoverEvent":{"action":"show_text","value":"\u00A7kchat colors on"}}

Note how the squares are colored and when you hover the cursor over the text, the shown text is obfuscated.

Now turn chat colors off and run the command again.

Note how the squares are no longer colored, which is expected behavior. However, also note that the shown text from hovering is still obfuscated. I thought it was reasonable to expect the hoverEvent text to no longer display any formatting. (I also didn't see this earlier, but it is also odd behavior that the shadows behind the obfuscated text don't match the actual displaying text.)

With chat colors on:

[media]

 

With chat colors off:

[media]

 

Expected with chat colors off:

[media]

Attachments

Comments 3

I wonder if saying "bump" will bump this bug. Still affects the newest version, 20w06a and all prior versions.

Huh? What does formatting have to do with colors?

Can confirm that this is still an issue in 20w51a.

OnePointZero

(Unassigned)

Confirmed

(Unassigned)

Minecraft 18w50a, 1.14.4, 1.15.2, 20w06a, 20w51a, 24w38a

Retrieved