https://linen.dev logo
Config Not Applying To World
# cobblegen
c
I've looked over the formatting over and over, tried and adapted different formats trying to figure out what is correct but I cannot get anything to work. This is my current attempt going off of formatting I saw on a solved issue on here. https://cdn.discordapp.com/attachments/1455909440246251560/1455909440426610790/cobblegen.json5?ex=697b5ad4&is=697a0954&hm=0bcbde58f804dff34331dc56f0cc8e6dd6f0b7914f1eae5e759139e0f6b31623&
a
Oh... the format is completely wrong... 1. when defining the same thing DON'T ADD, but MERGE. So instead of:
Copy code
json
        },
    ],
    "customGen": {
        "cobbleGen": {
            "minecraft:quartz_block": [
                {
                    "id": "minecraft:diorite",
                    "weight": 100.0,
                },
            ],
        },
    },
    "customGen": {
        "cobbleGen": {
            "minecraft:smooth_basalt: [
                {
                    "id": "minecraft:andesite",
                    "weight": 100.0,
                },
            ],
        },
    },
    "customGen": {
        "cobbleGen": {
You do:
Copy code
json
        },
    ],
    "customGen": {
        "cobbleGen": {
            "minecraft:quartz_block": [
                {
                    "id": "minecraft:diorite",
                    "weight": 100.0,
                },
            ],
            "minecraft:smooth_basalt: [
                {
                    "id": "minecraft:andesite",
                    "weight": 100.0,
                },
            ],
        },
    },
Oops, fat fingered enter lol
2. There also some missing quotation marks
I recommend using https://json-5.com/ to do the configuration
It'll verify the format for you
c
I see. All the examples I saw was of one generator with multiple outcomes when I was trying to do multiple seperate generators. Im gonna clean up my file and report back
a
It's almost new years for me so sorry if my response will be a bit slow
c
It's all good mate
Just tested this no dice. On the JSON reader the first ":" is underlined and I don't know what colors everything is supposed to be when correct. all quotation text " " except for the block after "id" are all red. https://cdn.discordapp.com/attachments/1455909440246251560/1455920828775661599/cobblegen.json5?ex=697b656f&is=697a13ef&hm=1890a7b691173aaa3aaa8f65cc76e6437834e40343095b9e50e4d5e617af3087&
I saw I was missing an inital quotation mark but I don't know if I'm just skimming or missed formatting somewhere else but I can't notice an instance I missed the quotations again
a
c
Sorry it took a minute to respond was being through. It works good I just need to fix my own spelling errors now. I don't know if it's a bug or maybe just something wrong on my end but it does not seem to like accept basalt as a bottom block for a generator.
I can work around that just fine, Im just glad I'm not wrestling this anymore. Thanks mate!
b
hey i need some help
this is my config its not working and im unsure why
a
You should make a new thread, also where the config?
3 Views