events.listen('recipes', e => {
    e.custom({
        type: 'mekanism:nucleosynthesizing',
        itemInput: {
            ingredient: {
                tag: 'forge:dusts/unobtainium_vibranium_alloy'
            }
        },
        gasInput: {
            gas: 'mekanism:antimatter',
            amount: 1
        },
        output: Item.of('kubejs:uu_matter', 16).toResultJson(),
        duration: 20
    });

    function mShaped(result, pattern, count) {
        e.custom({
            type: 'cucumber:shaped_no_mirror',
            pattern: pattern,
            key: {
                U: {
                    item: 'kubejs:uu_matter'
                }
            },
            result: {
                item: result,
                count: count != null ? count : 1
            }
        });
    }

    mShaped('alltheores:ore_aluminum', [
        ' UU',
        'UUU',
        'UUU'
    ], 12);
    mShaped('alltheores:ore_copper', [
        'U U',
        'UUU',
        'UUU'
    ], 12);
    mShaped('alltheores:ore_lead', [
        'UU ',
        'UUU',
        'UUU'
    ], 12);
    mShaped('alltheores:ore_nickel', [
        'UUU',
        ' UU',
        'UUU'
    ], 12);
    mShaped('alltheores:ore_osmium', [
        'UUU',
        'U U',
        'UUU'
    ], 12);
    mShaped('alltheores:ore_platinum', [
        'UUU',
        'UU ',
        'UUU'
    ], 12);
    mShaped('alltheores:ore_silver', [
        'UUU',
        'UUU',
        ' UU'
    ], 12);
    mShaped('alltheores:ore_tin', [
        'UUU',
        'UUU',
        'U U'
    ], 12);
    mShaped('alltheores:ore_uranium', [
        'UUU',
        'UUU',
        'UU '
    ], 12);
    mShaped('alltheores:ore_zinc', [
        ' UU',
        'UUU',
        'UU '
    ], 12);
    mShaped('minecraft:gold_ore', [
        ' UU',
        'UUU',
        ' UU'
    ], 12);
    mShaped('minecraft:iron_ore', [
        'UU ',
        'UUU',
        'UU '
    ], 12);
    mShaped('minecraft:nether_quartz_ore', [
        'UUU',
        'UUU',
        'U U'
    ], 12);
    mShaped('minecraft:redstone', [
        'U U',
        'U  ',
        'U U'
    ], 16);
    mShaped('minecraft:glowstone_dust', [
        'U U',
        '  U',
        'U U'
    ], 16);
    mShaped('minecraft:end_stone', [
        'U U',
        'UUU',
        'UUU'
    ], 32);
    mShaped('minecraft:slime_ball', [
        'U U',
        '   ',
        'U U'
    ], 16);
    mShaped('industrialforegoing:plastic', [
        'U U',
        'U U',
        'U U'
    ], 4);
    mShaped('minecraft:white_wool', [
        ' U ',
        'U U',
        ' U '
    ], 16);
    mShaped('minecraft:obsidian', [
        'UUU',
        'U U',
        'UUU'
    ], 16);
    mShaped('minecraft:oak_log', [
        ' U ',
        'UUU',
        ' U '
    ], 32);
    mShaped('minecraft:bone', [
        '  U',
        ' U ',
        'U  '
    ], 8);
    mShaped('minecraft:leather', [
        'U  ',
        ' U ',
        '  U'
    ], 4);
    mShaped('minecraft:gunpowder', [
        'U U',
        ' U ',
        'U U'
    ], 16);
});