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

nested colors in json chat don't work

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Fixed
    • Affects Version/s: Minecraft 1.6.1
    • Fix Version/s: Minecraft 1.6.2
    • Labels:
    • Environment:
      Server Client
    • Confirmation Status:
      Unconfirmed
    • Game Mode:
      Survival

      Description

      Nested colors in the new JSON output don't seen to work at all.

      EX

      {"text":[{"color":"green","text":"hello"},{"color":"red","text":"world"}]}
      

      Should output a green color "hello" and a red colored "world", but it comes out as helloworld (all white).

      It seems once a ChatMessage with children is serialized, it drops all formatting/color from the children. Only leaving the "text:" "foo" part.

      I believe Dinnerbone did this JSON stuff, so flag as him.

        Attachments

          Activity

            People

            • Assignee:
              dinnerbone [Mojang] Nathan Adams
              Reporter:
              iBotPeaches Connor Tumbleson
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: