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 = 'kubejs:vanadium_titano_magnetite',
        ore.spawnsIn.blacklist = false,
        ore.spawnsIn.values = [
            'minecraft:end_stone'
        ],
        ore.biomes.values = [
            '#the_end'
        ],
        ore.clusterMinSize = 2,
        ore.clusterMaxSize = 8,
        ore.clusterCount = 10,
        ore.minHeight = 0,
        ore.maxHeight = 64,
        ore.squared = true
    });

    event.addOre((ore) => {
        ore.block = 'kubejs:chromium_ore',
        ore.spawnsIn.blacklist = false,
        ore.spawnsIn.values = [
            'minecraft:end_stone'
        ],
        ore.biomes.values = [
            '#the_end'
        ],
        ore.clusterMinSize = 2,
        ore.clusterMaxSize = 4,
        ore.clusterCount = 5,
        ore.minHeight = 0,
        ore.maxHeight = 40,
        ore.squared = true
    });

    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
    });

    
});
