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

commands.json does not include redirect paths to the root node

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.15.2, 20w20b, 1.16 Pre-release 5, 1.16.1, 1.16.2 Pre-release 1, 1.16.2, 1.16.3, 1.16.4 Pre-release 1, 1.16.4, 20w45a, 20w46a, 20w48a, 20w49a, 20w51a, 21w03a, 1.16.5, 21w05b, 21w10a, 21w11a, 21w13a, 21w15a, 21w19a, 1.17 Pre-release 1, 1.17, 1.17.1, 21w37a, 1.18.1, 1.18.2, 22w11a, 22w12a, 1.19.1, 1.19.2, 1.19.3 Release Candidate 1, 1.19.3 Release Candidate 2, 1.19.3, 1.19.4, 23w18a, 1.20.1, 23w31a, 1.20.2
    • None
    • Confirmed
    • Commands

      The bug

      commands.json in generated data reports does not include redirect paths to the root node. This causes external tools depending on generated commands.json not to get proper information for command nodes.

      How to reproduce

      1. Download server.jar
      2. Run java -cp server.jar net.minecraft.data.Main --reports
      3. Open ./generated/reports/commands.json
      4. Search with "run" The node run in /execute run does not have "redirect" property although it actually redirects to the root node.
        ...
                "run": {
                  "type": "literal"
                },
        ...

      Affected commands

      • execute run ...
      • return run ...

            Unassigned Unassigned
            intsuc intsuc
            Votes:
            4 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              CHK: