Biomancy

Biomancy

311k Downloads

[Suggestion] Human-readable data files

MarioSMB opened this issue ยท 3 comments

commented

Please complete the following information:

  • Forge-Version: 47.2.20
  • Mod-Version: 2.4.4.0

Describe the bug
As a modpack creator it is difficult to extend upon the data files (recipes, tags, loot tables etc) as they are all formatted as a single line, e.g.
{"type":"biomancy:despoil","conditions":[{"condition":"minecraft:entity_properties","entity":"this","predicate":{"flags":{"is_baby":false}}},{"condition":"minecraft:killed_by_player"}],"weights":{"biomancy_mob_claw":150,"biomancy_mob_fang":140,"biomancy_mob_gland":40,"biomancy_mob_marrow":45,"biomancy_mob_sinew":70,"biomancy_toxin_gland":75,"biomancy_volatile_gland":50,"biomancy_withered_mob_marrow":65}}

Expected behavior
It would make life much easier for those who wish to support this mod to split each parameter to its own line like Mojang's data files, thanks.

Additional context

commented

Sorry, but the json files in the mod jar will always be minified. You can easily pretty format json files with any capable text editor.

But..
Soon I will no longer gitinore the generated json resouces and you will be able to find pretty formatted jsons here on github (at the beginning only in the mc1.20.1/dev branch)

commented

Glad to hear there will be some way to get the expanded versions, though I do hope you can consider expanding the files in the mod itself in the future as the formatting differences make it a challenge to extend cross-mod tag/recipe compatibility.

commented

They are now available https://github.com/Elenterius/Biomancy/tree/mc1.20.1/dev/src/generated/resources
(the main branch mc1.20.1/prod will have them when a release happens)