Mojang / minecraft-creator-tools

A set of tools for creating content and add-ons for Minecraft Bedrock Edition.
Other
70 stars 3 forks source link

JSON output is unreadable #20

Closed SmokeyStack closed 4 months ago

SmokeyStack commented 5 months ago

Running npx mctools-0.1.80.tgz validate -i build will validate a folder called build and dump the output in an out folder. Inside this out folder, navigate to the JSON file. Going to the index key, that's where the unreadability occurs. image As you can see in the image above, the tool finds the common letter of the first index, and makes that an object, and the rest of the word as a key. This makes it hard to read.

mammerla commented 4 months ago

This ungainly JSON data structure is essentially an "index" of major elements from various files. Used mostly internally for things like "Ctrl-E" search. I've removed the index from *.mcr.json files though in the newer build though.

Thanks for the feedback!