Mojira Archive
MCPE-139618

Vanilla BP JSON has inline comments, breaking json parsers and workflows

Inline comments are present in the item json files of the vanilla behavior pack. This is a non-standard use of json which breaks 3rd party parsers.

Examples include (bold for clarity):

appleEnchanted.json :

  "duration": 120, // 2 * 60

  "name": "resistance", // damage resistance

golden_apple.json

  "duration": 120, // 2 * 60

pufferfish.json

  "name": "nausea", // confusion

wheat_seeds.json

  *  "crop_result": "wheat" *// wheatCrops

 

Suggested fix is to remove inline comments where currently present.

 

Works As Intended

Adrian Brightmoore

2021-08-25, 08:28 AM

2023-08-16, 03:10 PM

2023-08-16, 03:10 PM

2

0

Confirmed

1088077

1.18.0.21 Beta, 1.17.11 Hotfix, 1.17.34, 1.18.2 Hotfix

-