onEvent('recipes', event => {

    const id_prefix = 'create:kubejs/pressing';

    const recipes = [
        {result: 'emendatusenigmatica:lapis_plate', ingredient: 'minecraft:lapis_lazuli', id: 'lapis_plate'}
    ];


    metals.forEach((metal) => {
        const ingot = itemOf(`#forge:ingots/${metal}`);
        const plate = itemOf(`#forge:plates/${metal}`);
        if(plate!=null){
            event.recipes.createPressing(plate, ingot).id(`${id_prefix}/${metal}_plate`);
        }
    });
    gems.forEach((metal) => {
        const gem = itemOf(`#forge:gems/${metal}`);
        const plate = itemOf(`#forge:plates/${metal}`);
        if(plate!=null){
            event.recipes.createPressing(plate, gem).id(`${id_prefix}/${metal}_plate`);
        }
    });

    recipes.forEach((recipe) => {
        event.recipes.createPressing(recipe.result, recipe.ingredient).id(`${id_prefix}/${recipe.id}`);
    });

});