Details

    • Confirmation Status:
      Confirmed

      Description

      The bug

      The NBT path parser used by /data get|remove and /execute store result|success entity|block might be too lenient. It does not require the path piece separator . (period) between pieces and the separator can be repeated multiple times.

      This allows constructs like the following:

      Inventory....[0]Count"Test"
      

      Possible different notation

      "Inventory".0."Count"
      
      "Inventory"/0/"Count"
      

      Keys would always require quotation marks, list indices would just be the index.
      When parsing, a strings would be treated as compound keys and integers as list indices. The separator would be required.

      In my opinion a slash (or other taller characters) make it easier to see the distinguish path pieces.

        Attachments

          Activity

            People

            • Assignee:
              dinnerbone [Mojang] Dinnerbone (Nathan Adams)
              Reporter:
              marcono1234 [Helper] Marcono1234
            • Votes:
              3 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                CHK: