#Arrays: One to Multi Dimensional export to JSON with nesting

11 messages · Page 1 of 1 (latest)

nova jungle
#

Find below the scripts for taking a one-dimensional array of modid:name or modid:path/path/path/name and looping through it to create a multi-dimensional array you can then export as JSON to use later.

quick shardBOT
#

Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!

nova jungle
native daggerBOT
#

Paste version of kubejs_startup_scripts_array_to_json.js from @nova jungle

nova jungle
#

I do not know how to get the information otherwise yet, but ideally mnE would be populated based on your environment mods and filtered for the information you want saved to the multi-dimensional json array file

#

I just prepopulated it with data for example

#

the console.log should be removed outside of testing.
this example looks something like this in the json file

native daggerBOT
#

Paste version of kubejs_config_multi_dimensional_array.json from @nova jungle

nova jungle
#

correction***

native daggerBOT
#

Paste version of kubejs_config_multi_dimensional_array.json from @nova jungle