onEvent('recipes', (event) => {
    const id_prefix = 'occultism:kubejs/miners/basic_resources/';
    const recipes = [
        {
            result: 'minecraft:gravel',
            weight: 2000,
            id: `${id_prefix}gravel`
        },
        {
            result: 'minecraft:red_sand',
            weight: 1800,
            id: `${id_prefix}red_sand`
        },
        {
            result: 'minecraft:sand',
            weight: 1800,
            id: `${id_prefix}sand`
        },
        {
            result: 'minecraft:clay',
            weight: 1500,
            id: `${id_prefix}clay`
        },
        {
            result: 'minecraft:snow_block',
            weight: 1500,
            id: `${id_prefix}snow`
        },
        {
            result: 'minecraft:ice',
            weight: 1000,
            id: `${id_prefix}ice`
        },
        {
            result: 'minecraft:packed_ice',
            weight: 100,
            id: `${id_prefix}packed_ice`
        },
        {
            result: 'minecraft:blue_ice',
            weight: 10,
            id: `${id_prefix}blue_ice`
        },
        {
            result: 'minecraft:netherrack',
            weight: 2000,
            id: `${id_prefix}netherrack`
        },
        {
            result: 'minecraft:basalt',
            weight: 2000,
            id: `${id_prefix}basalt`
        },
        {
            result: 'minecraft:blackstone',
            weight: 2000,
            id: `${id_prefix}blackstone`
        },
        {
            result: 'minecraft:gilded_blackstone',
            weight: 500,
            id: `${id_prefix}gilded_blackstone`
        },
        {
            result: 'minecraft:soul_sand',
            weight: 1800,
            id: `${id_prefix}soul_sand`
        },
        {
            result: 'minecraft:glowstone',
            weight: 600,
            id: `${id_prefix}glowstone`
        },
        {
            result: 'minecraft:obsidian',
            weight: 300,
            id: `${id_prefix}obsidian`
        },
        {
            result: 'minecraft:crying_obsidian',
            weight: 30,
            id: `${id_prefix}crying_obsidian`
        },
        {
            result: 'atum:limestone_gravel',
            weight: 2000,
            id: `${id_prefix}limestone_gravel`
        },
        {
            result: 'atum:sand',
            weight: 1800,
            id: `${id_prefix}strange_sand`
        },
        {
            result: 'atum:marl',
            weight: 1500,
            id: `${id_prefix}marl`
        },
        {
            result: 'occultism:otherstone',
            weight: 150,
            id: `${id_prefix}marl`
        },
    ];

    stones.forEach(type => {
        let built = {};
        built.result = type.stone;
        built.weight = 2000;
        built.id = `${id_prefix}${type.id}`;
        recipes.push(built);
    });

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

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