im using a project to learn to code, and in my getting anywhere lol
im trying to make a .json file generator that will read from a folder that users can easily interact with.
the .jsons in this folder will be like prefabrications. so i need to copy the information from this file and immediately create a file in another directory that has some changed information based on what the user input in the project settings.
i tried putting this in a code block but it kept kicking it out. im doing something wrong here
EX: {
"group": "CHANGE",
"type": "CHANGE",
"pattern": [
"0 2",
"345",
"678"
],
"key": {
"0": {
"item": "CHANGE"
},
"2": {
"item": "CHANGE"
},
"3": {
"item": "CHANGE"
},
"4": {
"item": "CHANGE"
},
"5": {
"item": "CHANGE"
},
"6": {
"item": "CHANGE"
},
"7": {
"item": "CHANGE"
},
"8": {
"item": "CHANGE"
}
},
"result": {
"item": "CHANGE",
"count": 1
}
}
`
this file has 12 different things to change and that's not uncommon. when you have over 200 items in your mod alone this gets tedious..
but this is a recipe and they arent that bad compared to the blocks in the game.
ill be setting up some sort of spreadsheet with all the blocks, items, potions, effects, etc etc from minecraft. that comes to a total of 2400 entries so ill have to get creative on caching that.