onEvent('recipes', event =>{

    const id_prefix = 'bloodmagic:kubejs/altar';

    const recipes = [
        {
            result: 'bloodmagic:blankslate',
            ingredient: 'appliedenergistics2:smooth_sky_stone_slab',
            level: 0,
            syphon: 1000,
            id: 'bloodmagic:altar/slate'
        },
        {
            result: 'bloodmagic:reinforcedslate',
            ingredient: 'bloodmagic:blankslate',
            level: 1,
            syphon: 2000,
            id: 'bloodmagic:altar/reinforcedslate'
        },
        {
            result: 'bloodmagic:infusedslate',
            ingredient: 'bloodmagic:reinforcedslate',
            level: 2,
            syphon: 5000,
            id: 'bloodmagic:altar/imbuedslate'
        },
        {
            result: 'bloodmagic:demonslate',
            ingredient: 'bloodmagic:infusedslate',
            level: 3,
            syphon: 15000,
            id: 'bloodmagic:altar/demonicslate'
        },
        {
            result: 'bloodmagic:etherealslate',
            ingredient: 'bloodmagic:demonslate',
            level: 4,
            syphon: 50000,
            id: 'bloodmagic:altar/etherealslate'
        },
        {
            result: 'bloodmagic:woodbrickpath',
            ingredient: 'eidolon:polished_planks',
            level: 0,
            syphon: 500,
            id: 'woodbrickpath'
        },
        {
            result: 'bloodmagic:stonebrickpath',
            ingredient: 'tconstruct:scorched_road',
            level: 0,
            syphon: 500,
            id: 'stonebrickpath'
        },
        {
            result: 'bloodmagic:weakbloodorb',
            ingredient: 'kubejs:scarlet_gem',
            level: 0,
            syphon: 2000,
            id: 'bloodmagic:altar/weakbloodorb'
        },
        {
            result: 'bloodmagic:apprenticebloodorb',
            ingredient: 'emendatusenigmatica:enderium_block',
            level: 1,
            syphon: 5000,
            id: 'bloodmagic:altar/apprenticebloodorb'
        },
        {
            result: 'bloodmagic:magicianbloodorb',
            ingredient: Item.of('jaept:overcharged_alloy', '{Energy:100000}'),
            level: 2,
            syphon: 25000,
            id: 'bloodmagic:altar/magicianbloodorb'
        },
        {
            result: 'bloodmagic:masterbloodorb',
            ingredient: 'atum:idol_of_labor',
            level: 3,
            syphon: 40000,
            id: 'bloodmagic:altar/masterbloodorb'
        },
        {
            result: 'jaept:scarlet_rope',
            ingredient: 'farmersdelight:rope',
            level: 3,
            syphon: 4000,
            id: 'scarlet_rope'
        },
        {
            result: 'bloodmagic:strong_tau',
            ingredient: 'bloodmagic:weak_tau',
            level: 4,
            syphon: 100000,
            id: 'strong_tau'
        },
        {
            result: 'kubejs:living_ceramic_black',
            ingredient: 'atum:ceramic_black',
            level: 4,
            syphon: 50000,
            id: 'living_ceramic_black'
        },
        {
            result: Item.of('occultism:chalk_red', '{Unbreakable:1b}'),
            ingredient: 'occultism:chalk_red_impure',
            level: 4,
            syphon: 500000,
            id: 'chalk_red'
        }
    ];

    recipes.forEach((recipe) => {
        var rate = (recipe.level+1)*10;
        var id = recipe.id.includes(':')? recipe.id : `${id_prefix}/${recipe.id}`;
        event.recipes.bloodmagic
            .altar(recipe.result, recipe.ingredient)
            .upgradeLevel(recipe.level)
            .altarSyphon(recipe.syphon)
            .consumptionRate(rate)
            .drainRate(rate)
            .id(id);
    });
    
})