Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-141323

Turning chat colors off doesn't affect text in hoverEvent

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • Minecraft 18w50a, 1.14.4, 1.15.2, 20w06a, 20w51a, 24w38a
    • None
    • Confirmed
    • (Unassigned)

      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:

       

      With chat colors off:

       

      Expected with chat colors off:

        1. 2018-12-20_20.18.11.png
          426 kB
          OnePointZero
        2. 2018-12-20_20.18.35.png
          449 kB
          OnePointZero
        3. 2018-12-20_20.21.17.png
          441 kB
          OnePointZero

            Unassigned Unassigned
            onepointzero OnePointZero
            Votes:
            2 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              CHK: