
ServerEvents.recipes(event => {

    event.shaped(Item.of('gtceu:primitive_alloy_smelter'), [
        'HRS',
        'PBR',
        'FRS'
    ], {
        H: '#forge:tools/hammers',
        R: 'gtceu:bronze_rod',
        S: 'gtceu:bronze_screw',
        P: 'gtceu:bronze_plate',
        B: 'gtceu:firebricks',
        F: '#forge:tools/screwdrivers'
    });

    // Red Alloy
    event.recipes.gtceu.primitive_alloy_smelter('primitive_red_alloy_ingot_coal')
        .itemInputs('minecraft:copper_ingot', '4x minecraft:redstone', '2x minecraft:coal')
        .itemOutputs('gtceu:red_alloy_ingot', 'gtceu:dark_ash_small_dust')
        .duration(260);

    event.recipes.gtceu.primitive_alloy_smelter('primitive_red_alloy_ingot_charcoal')
        .itemInputs('minecraft:copper_ingot', '4x minecraft:redstone', '2x minecraft:charcoal')
        .itemOutputs('gtceu:red_alloy_ingot', 'gtceu:dark_ash_small_dust')
        .duration(260);

    event.recipes.gtceu.primitive_alloy_smelter('primitive_red_alloy_ingot_coke')
        .itemInputs('minecraft:copper_ingot', '4x minecraft:redstone', 'gtceu:coke_gem')
        .itemOutputs('gtceu:red_alloy_ingot', '2x gtceu:dark_ash_small_dust')
        .duration(180);

    event.recipes.gtceu.primitive_alloy_smelter('primitive_red_alloy_dust_coal')
        .itemInputs('#forge:dusts/copper', '4x minecraft:redstone', '2x minecraft:coal')
        .itemOutputs('gtceu:red_alloy_ingot', 'gtceu:dark_ash_small_dust')
        .duration(260);

    event.recipes.gtceu.primitive_alloy_smelter('primitive_red_alloy_dust_charcoal')
        .itemInputs('#forge:dusts/copper', '4x minecraft:redstone', '2x minecraft:charcoal')
        .itemOutputs('gtceu:red_alloy_ingot', 'gtceu:dark_ash_small_dust')
        .duration(260);

    event.recipes.gtceu.primitive_alloy_smelter('primitive_red_alloy_dust_coke')
        .itemInputs('#forge:dusts/copper', '4x minecraft:redstone', 'gtceu:coke_gem')
        .itemOutputs('gtceu:red_alloy_ingot', '2x gtceu:dark_ash_small_dust')
        .duration(180);

    // Invar
    event.recipes.gtceu.primitive_alloy_smelter('primitive_invar_ingot_coal')
        .itemInputs('2x minecraft:iron_ingot', '#forge:ingots/nickel', '2x minecraft:coal')
        .itemOutputs('3x gtceu:invar_ingot', 'gtceu:dark_ash_small_dust')
        .duration(300);

    event.recipes.gtceu.primitive_alloy_smelter('primitive_invar_ingot_charcoal')
        .itemInputs('2x minecraft:iron_ingot', '#forge:ingots/nickel', '2x minecraft:charcoal')
        .itemOutputs('3x gtceu:invar_ingot', 'gtceu:dark_ash_small_dust')
        .duration(300);

    event.recipes.gtceu.primitive_alloy_smelter('primitive_invar_ingot_coke')
        .itemInputs('2x minecraft:iron_ingot', '#forge:ingots/nickel', 'gtceu:coke_gem')
        .itemOutputs('3x gtceu:invar_ingot', '2x gtceu:dark_ash_small_dust')
        .duration(220);

    event.recipes.gtceu.primitive_alloy_smelter('primitive_invar_dust_coal')
        .itemInputs('2x #forge:dusts/iron', '#forge:dusts/nickel', '2x minecraft:coal')
        .itemOutputs('3x gtceu:invar_ingot', 'gtceu:dark_ash_small_dust')
        .duration(300);

    event.recipes.gtceu.primitive_alloy_smelter('primitive_invar_dust_charcoal')
        .itemInputs('2x #forge:dusts/iron', '#forge:dusts/nickel', '2x minecraft:charcoal')
        .itemOutputs('3x gtceu:invar_ingot', 'gtceu:dark_ash_small_dust')
        .duration(300);

    event.recipes.gtceu.primitive_alloy_smelter('primitive_invar_dust_coke')
        .itemInputs('2x #forge:dusts/iron', '#forge:dusts/nickel', 'gtceu:coke_gem')
        .itemOutputs('3x gtceu:invar_ingot', '2x gtceu:dark_ash_small_dust')
        .duration(220);

    // Soul Infused
    event.recipes.gtceu.primitive_alloy_smelter('primitive_soul_infused_ingot_coal')
        .itemInputs('#forge:ingots/invar', '2x thermal_extra:soul_sand_dust', '2x minecraft:coal')
        .itemOutputs('thermal_extra:soul_infused_ingot', 'gtceu:dark_ash_small_dust')
        .duration(300);

    event.recipes.gtceu.primitive_alloy_smelter('primitive_soul_infused_ingot_charcoal')
        .itemInputs('#forge:ingots/invar', '2x thermal_extra:soul_sand_dust', '2x minecraft:charcoal')
        .itemOutputs('thermal_extra:soul_infused_ingot', 'gtceu:dark_ash_small_dust')
        .duration(300);

    event.recipes.gtceu.primitive_alloy_smelter('primitive_soul_infused_ingot_coke')
        .itemInputs('#forge:ingots/invar', '2x thermal_extra:soul_sand_dust', 'gtceu:coke_gem')
        .itemOutputs('thermal_extra:soul_infused_ingot', '2x gtceu:dark_ash_small_dust')
        .duration(260);

    event.recipes.gtceu.primitive_alloy_smelter('primitive_soul_infused_dust_coal')
        .itemInputs('#forge:dusts/invar', '2x thermal_extra:soul_sand_dust', '2x minecraft:coal')
        .itemOutputs('thermal_extra:soul_infused_ingot', 'gtceu:dark_ash_small_dust')
        .duration(200);

    event.recipes.gtceu.primitive_alloy_smelter('primitive_soul_infused_dust_charcoal')
        .itemInputs('#forge:dusts/invar', '2x thermal_extra:soul_sand_dust', '2x minecraft:charcoal')
        .itemOutputs('thermal_extra:soul_infused_ingot', 'gtceu:dark_ash_small_dust')
        .duration(300);

    event.recipes.gtceu.primitive_alloy_smelter('primitive_soul_infused_dust_coke')
        .itemInputs('#forge:dusts/invar', '2x thermal_extra:soul_sand_dust', 'gtceu:coke_gem')
        .itemOutputs('thermal_extra:soul_infused_ingot', '2x gtceu:dark_ash_small_dust')
        .duration(260);

    // Bronze
    event.recipes.gtceu.primitive_alloy_smelter('primitive_bronze_ingot_coal')
        .itemInputs('3x minecraft:copper_ingot', '#forge:ingots/tin', '2x minecraft:coal')
        .itemOutputs('4x gtceu:bronze_ingot', 'gtceu:dark_ash_small_dust')
        .duration(220);

    event.recipes.gtceu.primitive_alloy_smelter('primitive_bronze_ingot_charcoal')
        .itemInputs('3x minecraft:copper_ingot', '#forge:ingots/tin', '2x minecraft:charcoal')
        .itemOutputs('4x gtceu:bronze_ingot', 'gtceu:dark_ash_small_dust')
        .duration(220);

    event.recipes.gtceu.primitive_alloy_smelter('primitive_bronze_ingot_coke')
        .itemInputs('3x minecraft:copper_ingot', '#forge:ingots/tin', 'gtceu:coke_gem')
        .itemOutputs('4x gtceu:bronze_ingot', '2x gtceu:dark_ash_small_dust')
        .duration(200);

    event.recipes.gtceu.primitive_alloy_smelter('primitive_bronze_dust_coal')
        .itemInputs('3x #forge:dusts/copper', '#forge:ingots/tin', '2x minecraft:coal')
        .itemOutputs('4x gtceu:bronze_ingot', 'gtceu:dark_ash_small_dust')
        .duration(220);

    event.recipes.gtceu.primitive_alloy_smelter('primitive_bronze_dust_charcoal')
        .itemInputs('3x #forge:dusts/copper', '#forge:ingots/tin', '2x minecraft:charcoal')
        .itemOutputs('4x gtceu:bronze_ingot', 'gtceu:dark_ash_small_dust')
        .duration(220);

    event.recipes.gtceu.primitive_alloy_smelter('primitive_bronze_dust_coke')
        .itemInputs('3x #forge:dusts/copper', '#forge:ingots/tin', 'gtceu:coke_gem')
        .itemOutputs('4x gtceu:bronze_ingot', '2x gtceu:dark_ash_small_dust')
        .duration(200);

    // Fireclay
    event.recipes.gtceu.primitive_alloy_smelter('primitive_fireclay_coal')
        .itemInputs('gtceu:brick_dust', 'gtceu:clay_dust', '2x minecraft:coal')
        .itemOutputs('2x gtceu:firebrick', 'gtceu:dark_ash_small_dust')
        .duration(220);

    event.recipes.gtceu.primitive_alloy_smelter('primitive_fireclay_charcoal')
        .itemInputs('gtceu:brick_dust', 'gtceu:clay_dust', '2x minecraft:charcoal')
        .itemOutputs('2x gtceu:firebrick', 'gtceu:dark_ash_small_dust')
        .duration(220);

    event.recipes.gtceu.primitive_alloy_smelter('primitive_fireclay_coke')
        .itemInputs('gtceu:brick_dust', 'gtceu:clay_dust', 'gtceu:coke_gem')
        .itemOutputs('2x gtceu:firebrick', '2x gtceu:dark_ash_small_dust')
        .duration(160);

    // Brass
    event.recipes.gtceu.primitive_alloy_smelter('primitive_brass_ingot_coal')
        .itemInputs('3x minecraft:copper_ingot', '#forge:ingots/zinc', '2x minecraft:coal')
        .itemOutputs('4x gtceu:brass_ingot', 'gtceu:dark_ash_small_dust')
        .duration(200);

    event.recipes.gtceu.primitive_alloy_smelter('primitive_brass_ingot_charcoal')
        .itemInputs('3x minecraft:copper_ingot', '#forge:ingots/zinc', '2x minecraft:charcoal')
        .itemOutputs('4x gtceu:brass_ingot', 'gtceu:dark_ash_small_dust')
        .duration(200);

    event.recipes.gtceu.primitive_alloy_smelter('primitive_brass_ingot_coke')
        .itemInputs('3x minecraft:copper_ingot', '#forge:ingots/zinc', 'gtceu:coke_gem')
        .itemOutputs('4x gtceu:brass_ingot', '2x gtceu:dark_ash_small_dust')
        .duration(180);

    event.recipes.gtceu.primitive_alloy_smelter('primitive_brass_dust_coal')
        .itemInputs('3x #forge:dusts/copper', '#forge:ingots/zinc', '2x minecraft:coal')
        .itemOutputs('4x gtceu:brass_ingot', 'gtceu:dark_ash_small_dust')
        .duration(200);

    event.recipes.gtceu.primitive_alloy_smelter('primitive_brass_dust_charcoal')
        .itemInputs('3x #forge:dusts/copper', '#forge:ingots/zinc', '2x minecraft:charcoal')
        .itemOutputs('4x gtceu:brass_ingot', 'gtceu:dark_ash_small_dust')
        .duration(200);

    event.recipes.gtceu.primitive_alloy_smelter('primitive_brass_dust_coke')
        .itemInputs('3x #forge:dusts/copper', '#forge:ingots/zinc', 'gtceu:coke_gem')
        .itemOutputs('4x gtceu:brass_ingot', '2x gtceu:dark_ash_small_dust')
        .duration(180);
});