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

Text in tellraw doesn't accept \ while text on signs/in books needs \ (JSON) = Tellraw wont work with signs

    XMLWordPrintable

    Details

    • Confirmation Status:
      Unconfirmed

      Description

      I am sorry if this is a duplicate, but formatting whit JSON became lot complicated and I recognized that:

      • Tellraw (doesn't accept \ ):
        /tellraw @p {text:"HI"}
        
      • Signs (needs \ ):
        /give @p sign 1 0 {BlockEntityTag:{Text1:"{\"text\":\"\",\"extra\":[{\"text\":\"CLICK\"}]}",id:"Sign"}}
        
      • Mixed (doesn't work, which makes pretty much sense):
        /give @p sign 1 0 {BlockEntityTag:{Text1:"{\"text\":\"\",\"extra\":[{\"text\":\"CLICK\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/tellraw @p {text:\\\"Hi\\\"}\"}}]}",id:"Sign"}}
        

        (I made this using: http://ezekielelin.com/tellraw/#addExtraModalData )

      This will cause the game having problems with text detection which will cause the game to put the whole command on the sign. Without the \ it wont recognize the text in the /tellraw as text and will give (in a command block) as ouput:

      [13:28:53] Kann NBT-Daten Unexpected token 'H' at: Hi"}\"}}]}",id:"Sign" nicht analysieren
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                searge [Mojang] Searge (Michael Stoyke)
                Reporter:
                marcono1234 [Mod] Marcono1234
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: