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

SNBT text components prevent mixing text styles in lists

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 25w02a
    • Confirmed
    • Commands
    • Important
    • Platform

      In one single tellraw or titleraw command can't be strings (TAG_String) and components (TAG_Compound) used at the same time. In previous versions, this worked fine.

      Example:

      /tellraw @a ["String-Text ", {"text":"Component-Text"}]
      

      Expected Behavior:

      String-Text Component-Text

      will be shown in the chat.

      Observed Behavior:
      In the chat the part from the square brackets opening to the end of the command will be marked red and

      Can't insert TAG_Compound into list of TAG_String at position 29: ...g-Text ", <--[HERE]

      will be shown over the chat entry line.

            boq [Mojang] Bartosz Bok
            PrimCargo693208 PrimCargo693208
            Votes:
            13 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              CHK: