// This File has been authored by AllTheMods Staff, or a Community contributor for use in AllTheMods - AllTheMods 10: To the Sky.
// As all AllTheMods packs are licensed under All Rights Reserved, this file is not allowed to be used in any public packs not released by the AllTheMods Team, without explicit permission.

ServerEvents.recipes(allthemods => {

    /**
     * @param {{tag: string, count: number}} output
     * @param {string} catalyst
     * @param {number} depthMin
     * @param {number} depthMax
     * @param {number} weight
     */
    function laserDrillOre(output, catalyst, depthMin, depthMax, weight) {
        allthemods
            .custom({
                type: 'industrialforegoing:laser_drill_ore',
                output: {
                    tag: output.tag,
                    count: output.count || 1
                },
                rarity: [
                    {
                        biome_filter: {
                            whitelist:  [],
                            blacklist:  [],
                        },
                        dimension_filter: {
                            whitelist:  [],
                            blacklist:  [],
                        },
                        depth_min:  depthMin,
                        depth_max:  depthMax,
                        weight:     weight
                    }
                ],
                catalyst: {
                    item: catalyst
                }
            })
            .id(`allthemods:industrialforegoing/laser_drill_ore/${output.tag.split(':')[1]}`);
    }
    
    laserDrillOre(
        {tag: 'c:gems/benitoite', count: 8},
        'industrialforegoing:blue_laser_lens',
        5, 256, 5
    );
    
})

// This File has been authored by AllTheMods Staff, or a Community contributor for use in AllTheMods - AllTheMods 10: To the Sky.
// As all AllTheMods packs are licensed under All Rights Reserved, this file is not allowed to be used in any public packs not released by the AllTheMods Team, without explicit permission.
