// priority: 999

/*

██╗   ██╗███╗   ██╗██╗███████╗██╗ ██████╗ █████╗ ████████╗██╗ ██████╗ ███╗   ██╗
██║   ██║████╗  ██║██║██╔════╝██║██╔════╝██╔══██╗╚══██╔══╝██║██╔═══██╗████╗  ██║
██║   ██║██╔██╗ ██║██║█████╗  ██║██║     ███████║   ██║   ██║██║   ██║██╔██╗ ██║
██║   ██║██║╚██╗██║██║██╔══╝  ██║██║     ██╔══██║   ██║   ██║██║   ██║██║╚██╗██║
╚██████╔╝██║ ╚████║██║██║     ██║╚██████╗██║  ██║   ██║   ██║╚██████╔╝██║ ╚████║
 ╚═════╝ ╚═╝  ╚═══╝╚═╝╚═╝     ╚═╝ ╚═════╝╚═╝  ╚═╝   ╚═╝   ╚═╝ ╚═════╝ ╚═╝  ╚═══╝
                                                                                                                                                                                        
*/

ServerEvents.recipes((event) => {

    // Functions ══════════════════════════════════════════════════════════════════════════════════

    function unified_pressing(input_material, output_material, energy_required, index) {

        //Index = 1 Full Unified Pressing
        //Index = 2 Unified Pressing without Thermal Expansion

        const default_energy_cost = 3200;
        let energy_cost = 0;

        if (energy_required == "default_energy_cost") {
        energy_cost = default_energy_cost;
        } else {
        energy_cost = energy_required;
        }

        switch (index) {
            case 1:
                //Thermal Pressing
                event.recipes.thermal.press(output_material, input_material, 1, energy_cost).id("builders_paradise_2:" + output_material.path + "_thermal_press");
                //Immersive Engineering Pressing
                event.custom({
                    type: "immersiveengineering:metal_press",
                    energy:energy_cost,
                    input: { base_ingredient:  {item:input_material} },
                    mold: 'immersiveengineering:mold_plate',
                    result: { base_ingredient:  {item:output_material} }
                }).id("builders_paradise_2:" + output_material.path + "_immersive_engineering_metal_press");
                break;
            case 2:
                //Immersive Engineering Pressing
                event.custom({
                    type: "immersiveengineering:metal_press",
                    energy:energy_cost,
                    input: { base_ingredient:  {item:input_material} },
                    mold: 'immersiveengineering:mold_plate',
                    result: { base_ingredient:  {item:output_material} }
                }).id("builders_paradise_2:" + output_material.path + "_immersive_engineering_metal_press");
                break;
            default:
                break;
        }
    };

    function unified_alloying(input_material_1, amount_1, input_material_2, amount_2, input_material_3, amount_3, output_material, output_multiplier, energy_required, index) {

        //Define the Inputs, Up to 3 may be provided, each with a specific quantity.
        //The output_multiplier Amount defines the amount outputted by the recipes.
        //And the output_multiplier variable also multiplies the time for the IE's Bricked Alloy Smelter recipe.
        //⚠ WARNING: Currently the IE's Bricked Alloy Smelter don't support multiple items on the second slot.

        //Constructing a Unique Recipe Name based on the Inputs
        const input_1_name = input_material_1.path;
        const input_2_name = input_material_2.path;
        let input_3_name = "";
        let id_prefix = "";
        if (input_material_3 != null) {
            input_3_name = input_3_name + input_material_3.path
            id_prefix = "_with_" + input_1_name + "_" + input_2_name + "_and_" + input_3_name
        } else {
            id_prefix = "_with_" + input_1_name + "_and_" + input_2_name
        }
        
        const default_energy_cost = 6000;
        let energy_cost = 0;

        if (energy_required == "default_energy_cost") {
        energy_cost = default_energy_cost;
        } else {
        energy_cost = energy_required;
        }

        switch (index) {
            case 1:
                //In case a Third Output is not Provided ══════════════════════════════════════════════════
                if(input_material_3 == null) {

                    event.recipes.create.mixing([Item.of(output_material, output_multiplier)],
                    [Item.of(input_material_1, amount_1), Item.of(input_material_2, amount_2)]
                    ).id("builders_paradise_2:" + output_material.path + "_create_mixing" + id_prefix)

                    event.custom({
                        type:"immersiveengineering:alloy",
                        time:100 * output_multiplier,
                        input0:{base_ingredient:
                            {item:input_material_1}, count:amount_1},
                        input1:
                            {item:input_material_2, count: amount_2},
                        result:
                            {base_ingredient:{item:output_material}, count:output_multiplier}
                    }).id("builders_paradise_2:" + output_material.path + "_immersive_engineering_bricked_alloying" + id_prefix)
                    event.custom({
                        type: "enderio:alloy_smelting",
                        energy: energy_cost,
                        experience: 0.5,
                        inputs: [
                        {
                            count: amount_1,
                            ingredient: { item: input_material_1 }
                        },
                        {
                            count: amount_2,
                            ingredient: { item: input_material_2 }
                        }              
                        ],
                        result: {
                        count: output_multiplier,
                        item: output_material
                        }
                    }).id("builders_paradise_2:" + output_material.path + "_enderio_alloying" + id_prefix)
                    event.custom({           
                        type: "thermal:smelter",
                        energy: energy_cost,
                        ingredients: [
                            {
                                item: input_material_1,
                                count: amount_1
                            },
                            {
                                item: input_material_2,
                                count: amount_2
                            }
                        ],
                        result: [
                        {
                            item: output_material,
                            count: output_multiplier
                        }
                        ]
                    }).id("builders_paradise_2:" + output_material.path + "_thermal_alloying" + id_prefix)
                } else {

                    event.recipes.create.mixing([Item.of(output_material, output_multiplier)],
                    [Item.of(input_material_1, amount_1), Item.of(input_material_2, amount_2), Item.of(input_material_3, amount_3)]
                    ).id("builders_paradise_2:" + output_material.path + "_create_mixing" + id_prefix)

                    event.custom({
                        type: "enderio:alloy_smelting",
                        energy: energy_cost,
                        experience: 0.5,
                        inputs: [
                        {
                            count: amount_1,
                            ingredient: { item: input_material_1 }
                        },
                        {
                            count: amount_2,
                            ingredient: { item: input_material_2 }
                        },              
                        {
                            count: amount_3,
                            ingredient: { item: input_material_3 }
                        }          
                        ],
                        result: {
                        count: output_multiplier,
                        item: output_material
                        }
                    }).id("builders_paradise_2:" + output_material.path + "_enderio_alloying" + id_prefix)
                    event.custom({           
                        type: "thermal:smelter",
                        energy: energy_cost,
                        ingredients: [
                            {
                                item: input_material_1,
                                count: amount_1
                            },
                            {
                                item: input_material_2,
                                count: amount_2
                            },
                            {
                                item: input_material_3,
                                count: amount_3
                            }
                        ],
                        result: [
                        {
                            item: output_material,
                            count: output_multiplier
                        }
                        ]
                    }).id("builders_paradise_2:" + output_material.path + "_thermal_alloying" + id_prefix)
                }
                break;
            case 2:
                //In case a Third Output is not Provided ══════════════════════════════════════════════════
                if(input_material_3 == null) {

                    event.recipes.create.mixing([Item.of(output_material, output_multiplier)],
                    [Item.of(input_material_1, amount_1), Item.of(input_material_2, amount_2)]
                    ).id("builders_paradise_2:" + output_material.path + "_create_mixing" + id_prefix)

                    event.custom({
                        type: "enderio:alloy_smelting",
                        energy: energy_cost,
                        experience: 0.5,
                        inputs: [
                        {
                            count: amount_1,
                            ingredient: { item: input_material_1 }
                        },
                        {
                            count: amount_2,
                            ingredient: { item: input_material_2 }
                        }              
                        ],
                        result: {
                        count: output_multiplier,
                        item: output_material
                        }
                    }).id("builders_paradise_2:" + output_material.path + "_enderio_alloying" + id_prefix)
                    event.custom({           
                        type: "thermal:smelter",
                        energy: energy_cost,
                        ingredients: [
                            {
                                item: input_material_1,
                                count: amount_1
                            },
                            {
                                item: input_material_2,
                                count: amount_2
                            }
                        ],
                        result: [
                        {
                            item: output_material,
                            count: output_multiplier
                        }
                        ]
                    }).id("builders_paradise_2:" + output_material.path + "_thermal_alloying" + id_prefix)
                } else {

                    event.recipes.create.mixing([Item.of(output_material, output_multiplier)],
                    [Item.of(input_material_1, amount_1), Item.of(input_material_2, amount_2), Item.of(input_material_3, amount_3)]
                    ).id("builders_paradise_2:" + output_material.path + "_create_mixing" + id_prefix)

                    event.custom({
                        type: "enderio:alloy_smelting",
                        energy: energy_cost,
                        experience: 0.5,
                        inputs: [
                        {
                            count: amount_1,
                            ingredient: { item: input_material_1 }
                        },
                        {
                            count: amount_2,
                            ingredient: { item: input_material_2 }
                        },              
                        {
                            count: amount_3,
                            ingredient: { item: input_material_3 }
                        }          
                        ],
                        result: {
                        count: output_multiplier,
                        item: output_material
                        }
                    }).id("builders_paradise_2:" + output_material.path + "_enderio_alloying" + id_prefix)
                    event.custom({           
                        type: "thermal:smelter",
                        energy: energy_cost,
                        ingredients: [
                            {
                                item: input_material_1,
                                count: amount_1
                            },
                            {
                                item: input_material_2,
                                count: amount_2
                            },
                            {
                                item: input_material_3,
                                count: amount_3
                            }
                        ],
                        result: [
                        {
                            item: output_material,
                            count: output_multiplier
                        }
                        ]
                    }).id("builders_paradise_2:" + output_material.path + "_thermal_alloying" + id_prefix)
                }
                break;
            case 3:
                //In case a Third Output is not Provided ══════════════════════════════════════════════════
                if(input_material_3 == null) {
                    event.custom({
                        type:"immersiveengineering:alloy",
                        time:100 * output_multiplier,
                        input0:{base_ingredient:
                            {item:input_material_1}, count:amount_1},
                        input1:
                            {item:input_material_2, count: amount_2},
                        result:
                            {base_ingredient:{item:output_material}, count:output_multiplier}
                    }).id("builders_paradise_2:" + output_material.path + "_immersive_engineering_bricked_alloying" + id_prefix)
                    event.custom({
                        type: "enderio:alloy_smelting",
                        energy: energy_cost,
                        experience: 0.5,
                        inputs: [
                        {
                            count: amount_1,
                            ingredient: { item: input_material_1 }
                        },
                        {
                            count: amount_2,
                            ingredient: { item: input_material_2 }
                        }              
                        ],
                        result: {
                        count: output_multiplier,
                        item: output_material
                        }
                    }).id("builders_paradise_2:" + output_material.path + "_enderio_alloying" + id_prefix)
                    event.custom({           
                        type: "thermal:smelter",
                        energy: energy_cost,
                        ingredients: [
                            {
                                item: input_material_1,
                                count: amount_1
                            },
                            {
                                item: input_material_2,
                                count: amount_2
                            }
                        ],
                        result: [
                        {
                            item: output_material,
                            count: output_multiplier
                        }
                        ]
                    }).id("builders_paradise_2:" + output_material.path + "_thermal_alloying" + id_prefix)
                } else {

                    event.custom({
                        type: "enderio:alloy_smelting",
                        energy: energy_cost,
                        experience: 0.5,
                        inputs: [
                        {
                            count: amount_1,
                            ingredient: { item: input_material_1 }
                        },
                        {
                            count: amount_2,
                            ingredient: { item: input_material_2 }
                        },              
                        {
                            count: amount_3,
                            ingredient: { item: input_material_3 }
                        }          
                        ],
                        result: {
                        count: output_multiplier,
                        item: output_material
                        }
                    }).id("builders_paradise_2:" + output_material.path + "_enderio_alloying" + id_prefix)
                    event.custom({           
                        type: "thermal:smelter",
                        energy: energy_cost,
                        ingredients: [
                            {
                                item: input_material_1,
                                count: amount_1
                            },
                            {
                                item: input_material_2,
                                count: amount_2
                            },
                            {
                                item: input_material_3,
                                count: amount_3
                            }
                        ],
                        result: [
                        {
                            item: output_material,
                            count: output_multiplier
                        }
                        ]
                    }).id("builders_paradise_2:" + output_material.path + "_thermal_alloying" + id_prefix)
                }
                break;
            case 4:
                //In case a Third Output is not Provided ══════════════════════════════════════════════════
                if(input_material_3 == null) {
                    event.custom({
                        type: "enderio:alloy_smelting",
                        energy: energy_cost,
                        experience: 0.5,
                        inputs: [
                        {
                            count: amount_1,
                            ingredient: { item: input_material_1 }
                        },
                        {
                            count: amount_2,
                            ingredient: { item: input_material_2 }
                        }              
                        ],
                        result: {
                        count: output_multiplier,
                        item: output_material
                        }
                    }).id("builders_paradise_2:" + output_material.path + "_enderio_alloying" + id_prefix)
                    event.custom({           
                        type: "thermal:smelter",
                        energy: energy_cost,
                        ingredients: [
                            {
                                item: input_material_1,
                                count: amount_1
                            },
                            {
                                item: input_material_2,
                                count: amount_2
                            }
                        ],
                        result: [
                        {
                            item: output_material,
                            count: output_multiplier
                        }
                        ]
                    }).id("builders_paradise_2:" + output_material.path + "_thermal_alloying" + id_prefix)
                } else {
                    event.custom({
                        type: "enderio:alloy_smelting",
                        energy: energy_cost,
                        experience: 0.5,
                        inputs: [
                        {
                            count: amount_1,
                            ingredient: { item: input_material_1 }
                        },
                        {
                            count: amount_2,
                            ingredient: { item: input_material_2 }
                        },              
                        {
                            count: amount_3,
                            ingredient: { item: input_material_3 }
                        }          
                        ],
                        result: {
                        count: output_multiplier,
                        item: output_material
                        }
                    }).id("builders_paradise_2:" + output_material.path + "_enderio_alloying" + id_prefix)
                    event.custom({           
                        type: "thermal:smelter",
                        energy: energy_cost,
                        ingredients: [
                            {
                                item: input_material_1,
                                count: amount_1
                            },
                            {
                                item: input_material_2,
                                count: amount_2
                            },
                            {
                                item: input_material_3,
                                count: amount_3
                            }
                        ],
                        result: [
                        {
                            item: output_material,
                            count: output_multiplier
                        }
                        ]
                    }).id("builders_paradise_2:" + output_material.path + "_thermal_alloying" + id_prefix)
                }
                break;
            case 5:
                //In case a Third Output is not Provided ══════════════════════════════════════════════════
                if(input_material_3 == null) {

                    event.recipes.create.mixing([Item.of(output_material, output_multiplier)],
                    [Item.of(input_material_1, amount_1), Item.of(input_material_2, amount_2)]
                    ).heated().id("builders_paradise_2:" + output_material.path + "_create_mixing" + id_prefix)

                    event.custom({
                        type:"immersiveengineering:alloy",
                        time:100 * output_multiplier,
                        input0:{base_ingredient:
                            {item:input_material_1}, count:amount_1},
                        input1:
                            {item:input_material_2, count: amount_2},
                        result:
                            {base_ingredient:{item:output_material}, count:output_multiplier}
                    }).id("builders_paradise_2:" + output_material.path + "_immersive_engineering_bricked_alloying" + id_prefix)
                    event.custom({
                        type: "enderio:alloy_smelting",
                        energy: energy_cost,
                        experience: 0.5,
                        inputs: [
                        {
                            count: amount_1,
                            ingredient: { item: input_material_1 }
                        },
                        {
                            count: amount_2,
                            ingredient: { item: input_material_2 }
                        }              
                        ],
                        result: {
                        count: output_multiplier,
                        item: output_material
                        }
                    }).id("builders_paradise_2:" + output_material.path + "_enderio_alloying" + id_prefix)
                    event.custom({           
                        type: "thermal:smelter",
                        energy: energy_cost,
                        ingredients: [
                            {
                                item: input_material_1,
                                count: amount_1
                            },
                            {
                                item: input_material_2,
                                count: amount_2
                            }
                        ],
                        result: [
                        {
                            item: output_material,
                            count: output_multiplier
                        }
                        ]
                    }).id("builders_paradise_2:" + output_material.path + "_thermal_alloying" + id_prefix)
                } else {

                    event.recipes.create.mixing([Item.of(output_material, output_multiplier)],
                    [Item.of(input_material_1, amount_1), Item.of(input_material_2, amount_2), Item.of(input_material_3, amount_3)]
                    ).heated().id("builders_paradise_2:" + output_material.path + "_create_mixing" + id_prefix)

                    event.custom({
                        type: "enderio:alloy_smelting",
                        energy: energy_cost,
                        experience: 0.5,
                        inputs: [
                        {
                            count: amount_1,
                            ingredient: { item: input_material_1 }
                        },
                        {
                            count: amount_2,
                            ingredient: { item: input_material_2 }
                        },              
                        {
                            count: amount_3,
                            ingredient: { item: input_material_3 }
                        }          
                        ],
                        result: {
                        count: output_multiplier,
                        item: output_material
                        }
                    }).id("builders_paradise_2:" + output_material.path + "_enderio_alloying" + id_prefix)
                    event.custom({           
                        type: "thermal:smelter",
                        energy: energy_cost,
                        ingredients: [
                            {
                                item: input_material_1,
                                count: amount_1
                            },
                            {
                                item: input_material_2,
                                count: amount_2
                            },
                            {
                                item: input_material_3,
                                count: amount_3
                            }
                        ],
                        result: [
                        {
                            item: output_material,
                            count: output_multiplier
                        }
                        ]
                    }).id("builders_paradise_2:" + output_material.path + "_thermal_alloying" + id_prefix)
                }
                break;
            case 6:
                //In case a Third Output is not Provided ══════════════════════════════════════════════════
                if(input_material_3 == null) {

                    event.recipes.create.mixing([Item.of(output_material, output_multiplier)],
                    [Item.of(input_material_1, amount_1), Item.of(input_material_2, amount_2)]
                    ).superheated().id("builders_paradise_2:" + output_material.path + "_create_mixing" + id_prefix)

                    event.custom({
                        type:"immersiveengineering:alloy",
                        time:100 * output_multiplier,
                        input0:{base_ingredient:
                            {item:input_material_1}, count:amount_1},
                        input1:
                            {item:input_material_2, count: amount_2},
                        result:
                            {base_ingredient:{item:output_material}, count:output_multiplier}
                    }).id("builders_paradise_2:" + output_material.path + "_immersive_engineering_bricked_alloying" + id_prefix)
                    event.custom({
                        type: "enderio:alloy_smelting",
                        energy: energy_cost,
                        experience: 0.5,
                        inputs: [
                        {
                            count: amount_1,
                            ingredient: { item: input_material_1 }
                        },
                        {
                            count: amount_2,
                            ingredient: { item: input_material_2 }
                        }              
                        ],
                        result: {
                        count: output_multiplier,
                        item: output_material
                        }
                    }).id("builders_paradise_2:" + output_material.path + "_enderio_alloying" + id_prefix)
                    event.custom({           
                        type: "thermal:smelter",
                        energy: energy_cost,
                        ingredients: [
                            {
                                item: input_material_1,
                                count: amount_1
                            },
                            {
                                item: input_material_2,
                                count: amount_2
                            }
                        ],
                        result: [
                        {
                            item: output_material,
                            count: output_multiplier
                        }
                        ]
                    }).id("builders_paradise_2:" + output_material.path + "_thermal_alloying" + id_prefix)
                } else {

                    event.recipes.create.mixing([Item.of(output_material, output_multiplier)],
                    [Item.of(input_material_1, amount_1), Item.of(input_material_2, amount_2), Item.of(input_material_3, amount_3)]
                    ).superheated().id("builders_paradise_2:" + output_material.path + "_create_mixing" + id_prefix)

                    event.custom({
                        type: "enderio:alloy_smelting",
                        energy: energy_cost,
                        experience: 0.5,
                        inputs: [
                        {
                            count: amount_1,
                            ingredient: { item: input_material_1 }
                        },
                        {
                            count: amount_2,
                            ingredient: { item: input_material_2 }
                        },              
                        {
                            count: amount_3,
                            ingredient: { item: input_material_3 }
                        }          
                        ],
                        result: {
                        count: output_multiplier,
                        item: output_material
                        }
                    }).id("builders_paradise_2:" + output_material.path + "_enderio_alloying" + id_prefix)
                    event.custom({           
                        type: "thermal:smelter",
                        energy: energy_cost,
                        ingredients: [
                            {
                                item: input_material_1,
                                count: amount_1
                            },
                            {
                                item: input_material_2,
                                count: amount_2
                            },
                            {
                                item: input_material_3,
                                count: amount_3
                            }
                        ],
                        result: [
                        {
                            item: output_material,
                            count: output_multiplier
                        }
                        ]
                    }).id("builders_paradise_2:" + output_material.path + "_thermal_alloying" + id_prefix)
                }
                break;
            default:
                break;
        }
    };

    // ════════════════════════════════════════════════════════════════════════════════════════════


    //Pressing Unification ════════════════════════════════════════════════════════════════════════
    //(input_material, output_material, energy_required, index)
    //Index = 1 Full Unified Pressing
    //Index = 2 Full Unified Pressing without Thermal Expansion Press

    unified_pressing('create:zinc_ingot', 'createdeco:zinc_sheet', "default_energy_cost", 1);
    unified_pressing('create:andesite_alloy', 'createdeco:andesite_sheet', "default_energy_cost", 1);
    unified_pressing('minecraft:netherite_ingot', 'createdeco:netherite_sheet', "default_energy_cost", 2);
    unified_pressing('createdeco:industrial_iron_ingot', 'createdeco:industrial_iron_sheet', "default_energy_cost", 1);

    //Alloying Unification ════════════════════════════════════════════════════════════════════════
    //(input_material_1, amount_1, input_material_2, amount_2, input_material_3 or null, amount_3 or null, output_material, output_multiplier, energy_required, index)
    //Index = 1 Full Unified Alloying
    //Index = 2 Full Unified Alloying without IE's Bricked Alloy Smelter
    //Index = 3 Full Unified Alloying without Create's Mixing
    //Index = 4 Full Unified Alloying without Create's Mixing and IE's Bricked Alloy Smelter
    //Index = 5 Full Unified Alloying (Heated Mixer)
    //Index = 6 Full Unified Alloying (Superheated Mixer)

    //Andesite Alloy
    unified_alloying('minecraft:andesite', 1, 'minecraft:iron_nugget', 1, null, null, 'create:andesite_alloy', 1, 3200, 1);
    unified_alloying('minecraft:andesite', 1, 'create:zinc_nugget', 1, null, null, 'create:andesite_alloy', 1, 3200, 1);
    
    //Cognitive Alloy
    unified_alloying('experienceobelisk:cognitive_amalgam', 4, 'minecraft:iron_ingot', 1, null, null, 'experienceobelisk:cognitive_alloy', 1, "default_energy_cost", 5);
    
    //Copper Alloy
    unified_alloying('minecraft:copper_ingot', 1, 'enderio:silicon', 1, null, null, 'enderio:copper_alloy_ingot', 1, "default_energy_cost", 5);

    //Pulsating Iron
    unified_alloying('minecraft:iron_ingot', 1, 'minecraft:ender_pearl', 1, null, null, 'enderio:pulsating_alloy_ingot', 1, "default_energy_cost", 4);

    //Redstone Alloy
    unified_alloying('minecraft:redstone', 1, 'enderio:silicon', 1, null, null, 'enderio:redstone_alloy_ingot', 1, "default_energy_cost", 5);

    //Conductive Alloy
    unified_alloying('enderio:copper_alloy_ingot', 1, 'minecraft:iron_ingot', 1, 'minecraft:redstone', 1, 'enderio:conductive_alloy_ingot', 1, "default_energy_cost", 4);
    
    //Enderium
    unified_alloying('thermal:lead_ingot', 1, 'thermal:diamond_dust', 1, 'minecraft:ender_pearl', 2, 'thermal:enderium_ingot', 2, 16000, 4);
    unified_alloying('thermal:lead_dust', 1, 'thermal:diamond_dust', 1, 'thermal:ender_pearl_dust', 2, 'thermal:enderium_ingot', 2, 16000, 4);
    
    //Signalum
    unified_alloying('thermal:silver_ingot', 1, 'minecraft:redstone', 4, 'minecraft:copper_ingot', 3, 'thermal:signalum_ingot', 4, 12000, 4);
    unified_alloying('thermal:silver_dust', 1, 'minecraft:redstone', 4, 'thermal:copper_dust', 3, 'thermal:signalum_ingot', 4, 12000, 4);

    //Brass
    unified_alloying('minecraft:copper_ingot', 1, 'create:zinc_ingot', 1, null, null, 'create:brass_ingot', 2, "default_energy_cost", 5);
    unified_alloying('thermal:copper_dust', 1, 'jaopca:dusts.zinc', 1, null, null, 'create:brass_ingot', 2, "default_energy_cost", 5);

    //Lumium
    unified_alloying('thermal:silver_ingot', 1, 'minecraft:glowstone_dust', 2, 'thermal:tin_ingot', 3, 'thermal:lumium_ingot', 4, 12000, 4);
    unified_alloying('thermal:silver_dust', 1, 'minecraft:glowstone_dust', 2, 'thermal:tin_dust', 3, 'thermal:lumium_ingot', 4, 12000, 4);

    //Bronze
    unified_alloying('minecraft:copper_ingot', 3, 'thermal:tin_ingot', 1, null, null, 'thermal:bronze_ingot', 4, 6400, 5);
    unified_alloying('thermal:copper_dust', 3, 'thermal:tin_dust', 1, null, null, 'thermal:bronze_ingot', 4, 6400, 5);
   
    //Invar
    unified_alloying('minecraft:iron_ingot', 2, 'thermal:nickel_ingot', 1, null, null, 'thermal:invar_ingot', 3, 4800, 5);
    unified_alloying('thermal:iron_dust', 2, 'thermal:nickel_dust', 1, null, null, 'thermal:invar_ingot', 3, 4800, 5);
   
    //Rose Gold
    unified_alloying('minecraft:gold_ingot', 1, 'minecraft:copper_ingot', 3, null, null, 'thermal:rose_gold_ingot', 4, "default_energy_cost", 5);
    unified_alloying('thermal:gold_dust', 1, 'thermal:copper_dust', 3, null, null, 'thermal:rose_gold_ingot', 4, "default_energy_cost", 5);
    
    //Chromatic Compound
    unified_alloying('enderio:powdered_obsidian', 3, 'minecraft:glowstone_dust', 3, 'create:polished_rose_quartz', 1, 'create:chromatic_compound', 4, 32000, 4);
    
    //Electrum
    unified_alloying('minecraft:gold_ingot', 1, 'thermal:silver_ingot', 1, null, null, 'thermal:electrum_ingot', 2, "default_energy_cost", 5);
    unified_alloying('thermal:gold_dust', 1, 'thermal:silver_dust', 1, null, null, 'thermal:electrum_ingot', 2, "default_energy_cost", 5);
   
    // ════════════════════════════════════════════════════════════════════════════════════════════

});