Uploaded image for project: 'Minecraft Realms'
  1. Minecraft Realms
  2. REALMS-3007

JSON validator too strict- doesn't allow json string type ( ' ) or returns within strings

    XMLWordPrintable

    Details

    • Realms Platform:
      Java

      Description

      The json validator for realms is too strict and doesn't allow nbt fields within strings.

      These forms of loot tables will work in single player and on servers, but realms will refuse to load them:

       

        {
          "type": "minecraft:loot",
          "pools":
            [{   
              "rolls": 1,
              "entries": [{
                "type": "minecraft:item",
                "name": "minecraft:written_book",
                "functions": [{
                  "function": "minecraft:set_nbt",
                  "tag": "{     
                    title:\"Book title\", 
                    author:\"Some name\",
                    pages:[   
                      \'\"text\"\'
                    ]
                  }"
                }]
              }]
            }]
          }
      
      

       

        {
          "type": "minecraft:loot",
          "pools":
            [{   
              "rolls": 1,
              "entries": [{
                "type": "minecraft:item",
                "name": "minecraft:written_book",
                "functions": [{
                  "function": "minecraft:set_nbt",
                  "tag": "{ title:\"Book title\", author:\"Some name\", pages:[ \'\"text\"\' ] }"
                }]
              }]
            }]
          }
      
      

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            MukiTanuki MukiTanuki
            Votes:
            4 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated: