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

Unable to use 1.16's Hex Color system in resource pack Lang Files or Other pack files that allow Formatting

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • None
    • 1.16.1, 20w29a
    • None
    • Unconfirmed
    • (Unassigned)

      I noticed that there is no documentation to be able to use the Hex Color System in lang files.

      When minecraft loads the .lang files it merely loads every string from a .lang file into memory. when minecraft need to draw text it calls the draw function in net.minecraft.client.font.TextRenderer which takes MatrixStack matrices, String text, float x, float y, int color and whereas some functions where we can traditionally change the color such as the chatbox give some leeway. most other screens have hardcoded values for these colors.
      Basically, there is no known docs or method to using the Hex Color System in Lang Files.

      Was this a forgotten feature? Or was it purposefully ignored / not added

      I forgot to mention at the top of the post, but this also goes for other pack files that can use § formatting, like pack.mcmeta, lang files, credits, title screen messages, and other things.

            Unassigned Unassigned
            MisterSirCode Taylor Schneider
            Votes:
            3 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: