mojira.dev
MC-269931

Reset formatting code in advancement description removes text colour after line break

Using the reset formatting code §r in an advancement description that spans multiple lines resets the text colour to a default value (grey in the advancement screen; white in chat) after the next line break following the formatting code.

Steps to reproduce:

  1. Download the attached data pack “reset_format_test.zip” and add it to a new or existing world. This data pack adds a single advancement that is granted immediately and has the following string as its description text: "Lorem ipsum dolor sit amet, consectetur adipiscing §oelit§r, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."

  2. Hover over the advancement in the advancement screen and in the chat announcement. Note the formatting.

Expected results:

The word “elit” is italicised and the entire advancement description is formatted like normal with a green text colour.

Observed results:

The word “elit” is italicised, but the advancement description loses its green text colour starting at the next line break, turning grey in the advancement screen and white in chat.


May relate to MC-228516, MC-248972, and MC-250160.

Attachments

Comments 2

Thank you for your report!
After consideration, the issue is being closed as Working as Intended.

Please note, that mechanics of the game may change between updates.
Things such as graphics, sounds, world creation, biomes, redstone, villagers, and animals may not work the same in current versions.

Full Version HistorySnapshot Version HistoryThe official Minecraft feedback site

Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support (Technical Issues) – 📧 Microsoft Support (Account Issues)
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki

Note: closer to “won’t fix”, legacy formatting characters are not supported.

Charlotte Eiffel Lilith Buff

(Unassigned)

Confirmed

Advancements, Data Packs, UI

1.20.4, 24w12a, 24w13a, 24w14a, 1.20.5 Pre-Release 1, ..., 1.21, 1.21.1, 1.21.2, 1.21.3, 1.21.4

Retrieved