onEvent('recipes', (event) => {
    const id_prefix = 'occultism:kubejs/miners/ores/';
    const recipes = [
        {
            result: 'emendatusenigmatica:coal_chunk',
            weight: 1000,
            id: `${id_prefix}coal`
        },
        {
            result: 'emendatusenigmatica:fluorite_chunk',
            weight: 900,
            id: `${id_prefix}fluorite`
        },
        {
            result: 'emendatusenigmatica:lapis_chunk',
            weight: 900,
            id: `${id_prefix}lapis`
        },
        {
            result: 'emendatusenigmatica:apatite_chunk',
            weight: 900,
            id: `${id_prefix}apatite`
        },
        {
            result: 'emendatusenigmatica:potassium_nitrate_chunk',
            weight: 900,
            id: `${id_prefix}potassium_nitrate`
        },
        {
            result: 'emendatusenigmatica:iron_chunk',
            weight: 800,
            id: `${id_prefix}iron`
        },
        {
            result: 'emendatusenigmatica:tin_chunk',
            weight: 800,
            id: `${id_prefix}tin`
        },
        {
            result: 'emendatusenigmatica:zinc_chunk',
            weight: 800,
            id: `${id_prefix}zinc`
        },
        {
            result: 'emendatusenigmatica:copper_chunk',
            weight: 800,
            id: `${id_prefix}copper`
        },
        {
            result: 'emendatusenigmatica:silver_chunk',
            weight: 750,
            id: `${id_prefix}silver`
        },
        {
            result: 'emendatusenigmatica:lead_chunk',
            weight: 750,
            id: `${id_prefix}lead`
        },
        {
            result: 'emendatusenigmatica:nickel_chunk',
            weight: 750,
            id: `${id_prefix}nickel`
        },
        {
            result: 'emendatusenigmatica:gold_chunk',
            weight: 750,
            id: `${id_prefix}gold`
        },
        {
            result: 'emendatusenigmatica:quartz_chunk',
            weight: 700,
            id: `${id_prefix}nether_quartz`
        },
        {
            result: 'emendatusenigmatica:redstone_chunk',
            weight: 700,
            id: `${id_prefix}redstone`
        },
        {
            result: 'emendatusenigmatica:sulfur_chunk',
            weight: 700,
            id: `${id_prefix}sulfur`
        },
        {
            result: 'emendatusenigmatica:cinnabar_chunk',
            weight: 700,
            id: `${id_prefix}cinnabar`
        },
        {
            result: 'byg:anthracite_ore',
            weight: 700,
            id: `${id_prefix}anthracite`
        },
        {
            result: 'atum:bone_ore',
            weight: 700,
            id: `${id_prefix}bone`
        },
        {
            result: 'emendatusenigmatica:aluminum_chunk',
            weight: 600,
            id: `${id_prefix}aluminum`
        },
        {
            result: 'emendatusenigmatica:osmium_chunk',
            weight: 600,
            id: `${id_prefix}osmium`
        },
        {
            result: 'emendatusenigmatica:uranium_chunk',
            weight: 600,
            id: `${id_prefix}uranium`
        },
        {
            result: 'emendatusenigmatica:cobalt_chunk',
            weight: 600,
            id: `${id_prefix}cobalt`
        },
        {
            result: 'byg:emeraldite_ore',
            weight: 500,
            id: `${id_prefix}emeraldite`
        },
        {
            result: 'emendatusenigmatica:diamond_chunk',
            weight: 400,
            id: `${id_prefix}diamond`
        },
        {
            result: 'emendatusenigmatica:emerald_chunk',
            weight: 400,
            id: `${id_prefix}emerald`
        },
        {
            result: 'atum:relic_ore',
            weight: 400,
            id: `${id_prefix}relic`
        },
        {
            result: 'astralsorcery:rock_crystal_ore',
            weight: 200,
            id: `${id_prefix}rock_crystal`
        },
        {
            result: 'minecraft:ancient_debris',
            weight: 100,
            id: `${id_prefix}ancient_debris`
        },
        {
            result: 'atum:nebu_ore',
            weight: 100,
            id: `${id_prefix}nebu`
        },
        {
            result: 'occultism:iesnium_ore',
            weight: 50,
            id: `${id_prefix}iesnium`
        },
        {
            result: 'byg:pendorite_ore',
            weight: 50,
            id: `${id_prefix}pendorite`
        }
    ];

    recipes.forEach((recipe) => {
        recipe.type = 'occultism:miner';
        recipe.ingredient = { tag: 'occultism:miners/ores' };
        recipe.result = Item.of(recipe.result).toJson();

        event.custom(recipe).id(recipe.id);
    });
});