onEvent('worldgen.add', (event) => {

    const twilightforest_biomes = [
        'twilightforest:forest',
        'twilightforest:dense_forest',
        'twilightforest:firefly_forest',
        'twilightforest:clearing',
        'twilightforest:oak_savannah',
        'twilightforest:stream',
        'twilightforest:lake',
        'twilightforest:mushroom_forest',
        'twilightforest:dense_mushroom_forest',
        'twilightforest:enchanted_forest',
        'twilightforest:spooky_forest',
        'twilightforest:swamp',
        'twilightforest:fire_swamp',
        'twilightforest:dark_forest',
        'twilightforest:dark_forest_center',
        'twilightforest:snowy_forest',
        'twilightforest:glacier',
        'twilightforest:highlands',
        'twilightforest:thornlands',
        'twilightforest:final_plateau'
    ];

    event.addOre((ore) => {
        ore.block = 'emendatusenigmatica:certus_quartz_ore',
        ore.spawnsIn.blacklist = false,
        ore.spawnsIn.values = [
            'minecraft:stone'
        ],
        ore.biomes.values = twilightforest_biomes,
        ore.clusterMinSize = 3,
        ore.clusterMaxSize = 8,
        ore.clusterCount = 30,
        ore.minHeight = 0,
        ore.maxHeight = 30,
        ore.squared = true
    });

    event.addOre((ore) => {
        ore.block = 'emendatusenigmatica:dimensional_ore',
        ore.spawnsIn.blacklist = false,
        ore.spawnsIn.values = [
            'minecraft:stone'
        ],
        ore.biomes.values = twilightforest_biomes,
        ore.clusterMinSize = 1,
        ore.clusterMaxSize = 4,
        ore.clusterCount = 20,
        ore.minHeight = 0,
        ore.maxHeight = 30,
        ore.squared = true
    });

    
});
