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

Creating a sign with formatted text serializes lines without formatting incorrectly

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 25w02a
    • None
    • Community Consensus
    • Commands

      Reproduction

      1.

      /setblock <pos> oak_sign{front_text: {messages: [{text: "hello", bold: true}, {text: "a"}, {text: "b"}, {text: "c"}]}}
      

      2.

      /data get block <pos> front_text.messages
      

      Expected

      The data get returns

      [{text: "hello", bold: true}, {text: "a"}, {text: "b"}, {text: "c"}]
      

      Observed

      The data get returns

      [{text: "hello", bold: true}, {"": "a"}, {"": "b"}, {"": "c"}]
      

      with the key that's supposed to say text being an empty string instead.

            Unassigned Unassigned
            Schortan [Mod] NeunEinser
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              CHK: