mojira.dev
MC-184512

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

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"
            },
    ...
    ...
            "run": {
              "type": "literal"
            },
    ...

Affected commands

  • execute run ...

  • return run ...

Comments 0

No comments.

intsuc

(Unassigned)

Confirmed

Commands

1.15.2, 20w20b, 1.16 Pre-release 5, 1.16.1, 1.16.2 Pre-release 1, ..., 1.19.4, 23w18a, 1.20.1, 23w31a, 1.20.2

Retrieved