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

Functions don't understand JSON with line breaks

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Works As Intended
    • Affects Version/s: Minecraft 1.12.2
    • Fix Version/s: None
    • Labels:
    • Environment:
      Windows 10 Personal Edition, Java 8 64-bit, running via MultiMC launcher.
    • Confirmation Status:
      Unconfirmed

      Description

      This function works as intended:

      title @a {text: "Hello, World!"}
      

      This function does not:

      title @a {
        text: "Hello, World!"
      }
      

      Additionally, the failing function simply throws the error "Unknown function", which is cryptic and unhelpful – it would be much easier to debug problems of this type if there was a different error for "function not found" and "function did not parse correctly."

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            nupanick Nicholas Lamicela
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: