onEvent('recipes', (event) => {

    const id_prefix = 'botania:runic_altar';

    const recipes = [
        {
            inputs: [
                '#forge:dusts/mana',
                '#forge:ingots/manasteel',
                'bloodmagic:reagentwater',
                'kubejs:aquamarine_block',
                'thermal:diving_fabric',
                Item.of('atum:atems_bounty').ignoreNBT()
            ],
            mana: 8000,
            output: 'botania:rune_water',
            count: 2,
            id: 'water'
        },
        {
            inputs: [
                '#forge:dusts/mana',
                '#forge:ingots/manasteel',
                'astralsorcery:colored_lens_fire',
                'byg:cryptic_magma_block',
                'atum:efreet_heart',
                'immersiveengineering:firework'
            ],
            mana: 8000,
            output: 'botania:rune_fire',
            count: 2,
            id: 'fire'
        },
        {
            inputs: [
                '#forge:dusts/mana',
                '#forge:ingots/manasteel',
                'astralsorcery:colored_lens_growth',
                'botania:enchanted_soil',
                'tconstruct:queens_slime_ingot',
                Item.of('atum:osiris_blessing').ignoreNBT()
            ],
            mana: 8000,
            output: 'botania:rune_earth',
            count: 2,
            id: 'earth'
        },
        {
            inputs: [
                '#forge:dusts/mana',
                '#forge:ingots/manasteel',
                'bloodmagic:reagentair',
                'pedestals:coin/fan',
                'kubejs:scarab_wing',
                Item.of('rftoolsutility:syringe', '{mobName:"minecraft:chicken",mobId:"minecraft:chicken",level:10}')
            ],
            mana: 8000,
            output: 'botania:rune_air',
            count: 2,
            id: 'air'
        },
        {
            inputs: [
                '#forge:dusts/mana',
                '#forge:ingots/manasteel',
                'botania:quartz_mana',
                'botania:manaweave_cloth',
                'botania:mana_pearl',
                'botania:mana_diamond'
            ],
            mana: 16000,
            output: 'botania:rune_mana',
            count: 1,
            id: 'mana'
        },
        {
            inputs: [
                'botania:rune_water',
                'botania:rune_fire',
                'create:builders_tea',
                'twilightforest:charm_of_life_1',
                'materialis:fairy_ingot',
                'appliedenergistics2:pink_paint_ball',
                'appliedenergistics2:pink_paint_ball',
                'kubejs:temporal_shard'
            ],
            mana: 10000,
            output: 'botania:rune_spring',
            count: 1,
            id: 'spring'
        },
        {
            inputs: [
                'botania:rune_earth',
                'botania:rune_air',
                'astralsorcery:enchantment_amulet',
                'twilightforest:cicada',
                'appliedenergistics2:purified_certus_quartz_crystal',
                'appliedenergistics2:cyan_paint_ball',
                'appliedenergistics2:cyan_paint_ball',
                'kubejs:temporal_shard'
            ],
            mana: 10000,
            output: 'botania:rune_summer',
            count: 1,
            id: 'summer'
        },
        {
            inputs: [
                'botania:rune_fire',
                'botania:rune_air',
                'immersivepetroleum:napalm_bucket',
                'alexsmobs:guster_eye',
                'powah:charged_snowball',
                'appliedenergistics2:orange_paint_ball',
                'appliedenergistics2:orange_paint_ball',
                'kubejs:temporal_shard'
            ],
            mana: 10000,
            output: 'botania:rune_autumn',
            count: 1,
            id: 'autumn'
        },
        {
            inputs: [
                'botania:rune_water',
                'botania:rune_earth',
                'bloodmagic:duskritualstone',
                'twilightforest:alpha_fur',
                'kubejs:empty_quartz_lavender',
                'appliedenergistics2:white_paint_ball',
                'appliedenergistics2:white_paint_ball',
                'kubejs:temporal_shard'
            ],
            mana: 10000,
            output: 'botania:rune_winter',
            count: 1,
            id: 'winter'
        }
    ];

    recipes.forEach((recipe) => {
        let ingredients = [];

        recipe.inputs.forEach((input) => {
            ingredients.push(Ingredient.of(input).toJson());
        });

        event.custom({
            type: 'botania:runic_altar',
            output: { item: recipe.output, count: recipe.count },
            mana: recipe.mana,
            ingredients: ingredients
        }).id(`${id_prefix}/${recipe.id}`);
    });
});
