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

/tellraw and /title inconsistencies

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Works As Intended
    • None
    • Minecraft 1.7.9, Minecraft 14w20a, Minecraft 14w20b, Minecraft 14w21a, Minecraft 14w21b, Minecraft 14w25a, Minecraft 1.7.10-pre4, Minecraft 14w25b, Minecraft 1.7.10, Minecraft 14w32a, Minecraft 14w32b, Minecraft 14w32c, Minecraft 14w32d, Minecraft 1.8, Minecraft 1.8.1, Minecraft 1.8.2-pre1, Minecraft 1.8.3, Minecraft 1.8.4, Minecraft 1.8.8, Minecraft 15w41b, Minecraft 15w46a, Minecraft 15w47a, Minecraft 15w47b, Minecraft 15w47c, Minecraft 1.8.9, Minecraft 16w06a, Minecraft 1.9 Pre-Release 1, Minecraft 1.9 Pre-Release 2, Minecraft 1.9.2, Minecraft 1.9.3 Pre-Release 3, Minecraft 1.9.3, Minecraft 1.9.4, Minecraft 16w20a, Minecraft 1.11.2, Minecraft 17w06a, Minecraft 1.12, Minecraft 1.12.1, Minecraft 1.12.2 Pre-Release 1, Minecraft 1.12.2 Pre-Release 2, Minecraft 1.12.2, Minecraft 17w43a, Minecraft 17w43b, Minecraft 1.13.1, 1.15.1, 1.15.2, 20w09a, 1.16 Pre-release 4, 1.16 Release Candidate 1, 1.16, 20w51a
    • Confirmed
    • Commands

      The bug

      The way tellraw commands inherit properties is very inconsistent between formats. Here are some examples of tellraw commands:

      {"text":"Hello","color":"red"}

      Hello

      {"text":"Hello","color":"red","extra":[{"text":" world"}]}

      Hello world

      {"text":" ","extra":[{"text":"How are you","color":"green"},{"text":" today?"}]}

      How are you today

      [{"text":"How are you","color":"green"},{"text":" today?"}]

      How are you today

      as you can see in the last two examples, putting your text objects in the extras array doesn't allow inheritance between them, however putting them in a first level array does. This makes no sense, because in both of these examples, the text snippets share the same relation, they are at the same level of an array, in the same order. They should behave the same.

      Code analysis

      Code analysis by marcono1234 can be found in this comment.

            Unassigned Unassigned
            ezekielelin [Mod] Ezekiel (ezfe)
            Votes:
            14 Vote for this issue
            Watchers:
            13 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: