onEvent('recipes', event => {

    const id_prefix = 'bloodmagic:kubejs/meteor';

    const recipes = [
        {
            input: 'minecraft:iron_block',
            syphon: 50000,
            explosion: 5.0,
            layers: [
                {
                    radius: 6,
                    additionalWeight: 0,
                    minWeight: 1000,
                    weightMap: [
                        {
                            tag: 'emendatusenigmatica:silver_ore',
                            weight: 150
                        },
                        {
                            tag: 'emendatusenigmatica:lead_ore',
                            weight: 150
                        },
                        {
                            tag: 'emendatusenigmatica:uranium_ore',
                            weight: 150
                        },
                        {
                            tag: 'emendatusenigmatica:osmium_ore',
                            weight: 150
                        },
                        {
                            tag: 'emendatusenigmatica:cobalt_ore',
                            weight: 150
                        }
                    ],
                    fill: 'minecraft:stone'
                },
                {
                    radius: 12,
                    additionalWeight: 0,
                    minWeight: 1000,
                    weightMap: [
                        {
                            tag: 'emendatusenigmatica:iron_ore',
                            weight: 100
                        },
                        {
                            tag: 'emendatusenigmatica:nickel_ore',
                            weight: 100
                        },
                        {
                            tag: 'emendatusenigmatica:aluminum_ore',
                            weight: 100
                        },
                        {
                            tag: 'emendatusenigmatica:copper_ore',
                            weight: 100
                        },
                        {
                            tag: 'emendatusenigmatica:iron_ore',
                            weight: 100
                        },
                        {
                            tag: 'emendatusenigmatica:gold_ore',
                            weight: 100
                        },
                        {
                            tag: 'emendatusenigmatica:tin_ore',
                            weight: 100
                        },
                        {
                            tag: 'emendatusenigmatica:zinc_ore',
                            weight: 100
                        }
                    ],
                    fill: 'minecraft:stone'
                }
            ],
            id: 'metal_ores'
        },
        {
            input: 'kubejs:quartz_crystal_pack',
            syphon: 50000,
            explosion: 5.0,
            layers: [
                {
                    radius: 5,
                    additionalWeight: 0,
                    minWeight: 1000,
                    weightMap: [
                        {
                            tag: 'emendatusenigmatica:quartz_ore',
                            weight: 200
                        },
                        {
                            tag: 'emendatusenigmatica:redstone_ore',
                            weight: 200
                        },
                        {
                            tag: 'emendatusenigmatica:cinnabar_ore',
                            weight: 200
                        },
                        {
                            tag: 'emendatusenigmatica:lapis_ore',
                            weight: 200
                        }
                    ],
                    fill: 'minecraft:stone'
                },
                {
                    radius: 10,
                    additionalWeight: 0,
                    minWeight: 1000,
                    weightMap: [
                        {
                            tag: 'emendatusenigmatica:coal_ore',
                            weight: 150
                        },
                        {
                            tag: 'emendatusenigmatica:apatite_ore',
                            weight: 150
                        },
                        {
                            tag: 'emendatusenigmatica:fluorite_ore',
                            weight: 150
                        },
                        {
                            tag: 'emendatusenigmatica:potassium_nitrate_ore',
                            weight: 150
                        },
                        {
                            tag: 'emendatusenigmatica:sulfur_ore',
                            weight: 150
                        }
                    ],
                    fill: 'minecraft:stone'
                }
            ],
            id: 'common_gem_ores'
        },
        {
            input: 'emendatusenigmatica:diamond_dust',
            syphon: 80000,
            explosion: 5.0,
            layers: [
                {
                    radius: 4,
                    additionalWeight: 0,
                    minWeight: 1000,
                    weightMap: [
                        {
                            tag: 'emendatusenigmatica:diamond_ore',
                            weight: 200
                        },
                        {
                            tag: 'emendatusenigmatica:emerald_ore',
                            weight: 200
                        },
                        {
                            tag: 'emendatusenigmatica:ruby_ore',
                            weight: 200
                        },
                        {
                            tag: 'emendatusenigmatica:sapphire_ore',
                            weight: 200
                        }
                    ],
                    fill: 'minecraft:stone'
                }
            ],
            id: 'rare_gem_ores'
        },
        {
            input: 'atum:scarab',
            syphon: 500000,
            explosion: 10.0,
            layers: [
                {
                    radius: 6,
                    additionalWeight: 0,
                    minWeight: 1000,
                    weightMap: [
                        {
                            tag: 'atum:bone_ore',
                            weight: 400
                        },
                        {
                            tag: 'atum:relic_ore',
                            weight: 350
                        },
                        {
                            tag: 'atum:nebu_ore',
                            weight: 250
                        }
                    ],
                    fill: 'atum:limestone',
                    shell: 'atum:limestone'
                },
                {
                    radius: 9,
                    additionalWeight: 0,
                    minWeight: 1000,
                    weightMap: [
                        {
                            tag: 'atum:khnumite_raw',
                            weight: 150
                        },
                        {
                            tag: 'kubejs:living_ceramic_black',
                            weight: 300
                        }
                    ],
                    fill: 'atum:marl',
                    shell: 'atum:ceramic_black'
                }
            ],
            id: 'atum'
        },
        {
            input: 'create:shadow_steel',
            syphon: 200000,
            explosion: 12.0,
            layers: [
                {
                    radius: 8,
                    additionalWeight: 0,
                    minWeight: 1000,
                    weightMap: [
                        {
                            tag: 'minecraft:obsidian',
                            weight: 200
                        },
                        {
                            tag: 'tconstruct:seared_stone',
                            weight: 100
                        },
                        {
                            tag: 'appliedenergistics2:smooth_sky_stone_block',
                            weight: 100
                        },
                        {
                            tag: 'tconstruct:scorched_stone',
                            weight: 50
                        },
                        {
                            tag: 'create:shadow_steel_casing',
                            weight: 10
                        }
                    ],
                    fill: 'appliedenergistics2:sky_stone_block',
                    shell: 'appliedenergistics2:smooth_sky_stone_block'
                }
            ],
            id: 'sky_stone'
        }
    ]

    recipes.forEach(recipe => {
        recipe.type = 'bloodmagic:meteor';
        recipe.input = Ingredient.of(recipe.input).toJson();
        event.custom(recipe).id(`${id_prefix}/${recipe.id}`);
    })

})