import crafttweaker.item.IIngredient;
import mods.gregtech.recipe.RecipeMap;
import scripts.common.makeShaped as makeShaped;

//add assembly line craft
chemical_reactor.recipeBuilder()
    .inputs([<hbm:powder_desh_mix>])
    .fluidInputs([<liquid:oil_light> * 200
    , <liquid:mercury> * 500])
    .outputs(<hbm:ingot_desh>)
    .duration(200)
    .EUt(512)
    .buildAndRegister();

chemical_reactor.recipeBuilder()
    .inputs([<ore:ingotUranium> * 16
    , <hbm:particle_higgs>])
    .fluidInputs([<liquid:cryotheum> * 1000])
    .outputs([<hbm:particle_empty>
    , <hbm:ingot_schrabidium> * 8])
    .fluidOutputs(<liquid:watz> * 50)
    .duration(600)
    .EUt(8000)
    .buildAndRegister();

chemical_reactor.recipeBuilder()
    .fluidInputs([<liquid:diesel> * 1200
    , <liquid:steam> * 2000])
    .fluidOutputs(<liquid:kerosene> * 400)
    .duration(200)
    .EUt(128)
    .buildAndRegister();

mixer.recipeBuilder()
    .inputs([<minecraft:sand> * 6
    , <minecraft:gravel> * 2])
    .fluidInputs([<liquid:oil_medium> * 4000])
    .outputs(<hbm:asphalt> * 16)
    .duration(300)
    .EUt(32)
    .buildAndRegister();

mixer.recipeBuilder()
    .inputs([<minecraft:sand> * 8
    , <minecraft:gravel> * 8])
    .fluidInputs([<liquid:water> * 4000])
    .outputs([<hbm:concrete_smooth> * 8])
    .duration(200)
    .EUt(32)
    .buildAndRegister();

mixer.recipeBuilder()
    .inputs([<minecraft:sand> * 8
    , <minecraft:gravel> * 6
    , <ore:ingotUranium>])
    .fluidInputs([<liquid:water> * 4000])
    .outputs([<hbm:ducrete_smooth> * 16])
    .duration(300)
    .EUt(32)
    .buildAndRegister();

mixer.recipeBuilder()
    .inputs([<minecraft:sand> * 8
    , <minecraft:gravel> * 4
    , <ore:dustAsbestos> * 4])
    .fluidInputs([<liquid:water> * 4000])
    .outputs([<hbm:concrete_asbestos> * 16])
    .duration(300)
    .EUt(32)
    .buildAndRegister();

chemical_reactor.recipeBuilder()
    .fluidInputs([<liquid:bio_diesel> * 400])
    .inputs([<contenttweaker:smokelesspowder> * 2
    , <ore:dustBlitz>])
    .outputs([<hbm:cordite> * 1])
    .duration(80)
    .EUt(128)
    .buildAndRegister();

recipes.remove(<hbm:ballistite>);

recipes.addShapeless(<hbm:ingot_polymer>, [<gregtech:meta_plate:1012>, <gregtech:meta_plate:1012>, <gregtech:meta_plate:1068>]);

chemical_reactor.recipeBuilder()
    .inputs([<ore:ingotSolinium> * 12
    , <hbm:particle_dark>])
    .fluidInputs([<liquid:cryotheum> * 1000])
    .outputs([<hbm:particle_empty>
    , <hbm:ingot_euphemium> * 8])
    .fluidOutputs(<liquid:watz> * 200)
    .duration(600)
    .EUt(10000)
    .buildAndRegister();

chemical_reactor.recipeBuilder()
    .inputs([<hbm:ingot_schrabidate> * 12
    , <hbm:particle_sparkticle>])
    .fluidInputs([<liquid:cryotheum> * 2000])
    .outputs([<hbm:particle_empty>
    , <hbm:ingot_dineutronium> * 8])
    .fluidOutputs(<liquid:watz> * 400)
    .duration(600)
    .EUt(10000)
    .buildAndRegister();

mixer.recipeBuilder()
    .inputs([<minecraft:brick> * 2
    , <minecraft:coal>
    , <ore:dustSaltpeter> * 2])
    .fluidInputs([<liquid:sulfuric_gas> * 100])
    .outputs(<hbm:plate_kevlar> * 2)
    .duration(300)
    .EUt(32)
    .buildAndRegister();

chemical_reactor.recipeBuilder()
    .inputs([<ore:ingotSchrabidium> * 12
    , <hbm:particle_sparkticle>])
    .fluidInputs([<liquid:cryotheum> * 2000])
    .outputs([<hbm:particle_empty>
    , <hbm:ingot_dineutronium> * 8])
    .fluidOutputs(<liquid:watz> * 400)
    .duration(600)
    .EUt(10000)
    .buildAndRegister();

chemical_reactor.recipeBuilder()
    .inputs([<minecraft:redstone> * 4
    , <ore:dustSaltpeter>])
    .fluidInputs([<liquid:kerosene> * 1000])
    .outputs([<hbm:particle_empty>
    , <hbm:rocket_fuel> * 4])
    .duration(300)
    .EUt(512)
    .buildAndRegister();

chemical_reactor.recipeBuilder()
    .inputs([<ore:ingotHssg>
    , <hbm:powder_fire>])
    .fluidInputs([<liquid:mercury> * 100
    , <liquid:hydrogen_peroxide> * 200])
    .outputs([<hbm:ingot_saturnite>])
    .duration(300)
    .EUt(512)
    .buildAndRegister();

chemical_reactor.recipeBuilder()
    .inputs([<hbm:ingot_schrabidium>
    , <ore:dustSulfur> * 4])
    .fluidInputs([<liquid:hydrogen_peroxide> * 2000])
    .fluidOutputs(<liquid:sas3> * 1000)
    .duration(300)
    .EUt(1024)
    .buildAndRegister();

chemical_reactor.recipeBuilder()
    .inputs([<hbm:pellet_charged>])
    .fluidInputs([<liquid:sas3> * 8000
    , <liquid:hydrogen_peroxide> * 6000])
    .fluidOutputs(<liquid:schrabidic> * 8000)
    .duration(300)
    .EUt(1024)
    .buildAndRegister();

chemical_reactor.recipeBuilder()
    .inputs([<ore:dustIron>])
    .fluidInputs([<liquid:schrabidic> * 500])
    .outputs([<hbm:powder_schrabidate>])
    .duration(300)
    .EUt(7254)
    .buildAndRegister();

mixer.recipeBuilder()
    .inputs([<hbm:circuit_red_copper>
    , <ore:wireFineGold> * 16
    , <ore:platePolyvinylChloride> * 4
    , <ore:gemFlawlessLapis>*6])
    .fluidInputs([<liquid:hydrochloric_acid> * 1000])
    .outputs([<hbm:circuit_gold>])
    .duration(600)
    .EUt(2048)
    .buildAndRegister();

mixer.recipeBuilder()
    .inputs([<hbm:circuit_gold>
    , <hbm:wire_schrabidium> * 8
    , <hbm:plate_desh> * 4
    , <ore:gemFlawlessDiamond>*4])
    .fluidInputs([<liquid:hydrochloric_acid> * 1000
    , <liquid:nitric_acid> * 4000])
    .outputs([<hbm:circuit_schrabidium>])
    .duration(900)
    .EUt(2048)
    .buildAndRegister();

chemical_reactor.recipeBuilder()
    .inputs([<hbm:pellet_charged>])
    .fluidInputs([<liquid:oxygen> * 1000
    , <liquid:hydrogen> * 1000])
    .fluidOutputs(<liquid:hydrogen_peroxide> * 500)
    .duration(240)
    .EUt(128)
    .buildAndRegister();

recipes.remove(<hbm:plate_desh>);

recipes.addShaped(<hbm:plate_desh>,
[[<ore:dustPlastic>, <hbm:ingot_desh>, <ore:dustPlastic>],
[<hbm:ingot_desh>, <ore:ingotHssg>, <hbm:ingot_desh>],
[<ore:dustPlastic>, <hbm:ingot_desh>, <ore:dustPlastic>]]);