<commit_before>package techreborn.init;

import cpw.mods.fml.common.registry.GameRegistry;
import ic2.api.item.IC2Items;
import net.minecraft.init.Blocks;
import net.minecraft.init.Items;
import net.minecraft.item.ItemStack;
import net.minecraftforge.fluids.FluidRegistry;
import net.minecraftforge.fluids.FluidStack;
import net.minecraftforge.oredict.OreDictionary;
import techreborn.api.recipe.RecipeHandler;
import techreborn.api.recipe.machines.AlloySmelterRecipe;
import techreborn.api.recipe.machines.IndustrialSawmillRecipe;
import techreborn.api.recipe.machines.LatheRecipe;
import techreborn.api.recipe.machines.PlateCuttingMachineRecipe;
import techreborn.config.ConfigTechReborn;
import techreborn.items.ItemDusts;
import techreborn.items.ItemIngots;
import techreborn.items.ItemParts;
import techreborn.items.ItemPlates;
import techreborn.items.ItemRods;
import techreborn.util.CraftingHelper;
import techreborn.util.LogHelper;

public class ModRecipes {
	public static ConfigTechReborn config;

	public static void init() {
		addShaplessRecipes();
		addShappedRecipes();
		addSmeltingRecipes();
        addAlloySmelterRecipes();
        addLatheRecipes();
        addPlateCuttingMachineRecipes();
		addUUrecipes();
		addHammerRecipes();
        addIndustrialSawmillRecipes();
	}

	public static void addShappedRecipes() {
		// Storage Blocks
		CraftingHelper.addShapedOreRecipe(new ItemStack(ModBlocks.storage, 1, 0),
				 "AAA", "AAA", "AAA",
					'A', "ingotSilver");

		CraftingHelper.addShapedOreRecipe(new ItemStack(ModBlocks.storage, 1, 1),
				 "AAA", "AAA", "AAA",
					'A', "ingotAluminium");

		CraftingHelper.addShapedOreRecipe(new ItemStack(ModBlocks.storage, 1, 2),
				 "AAA", "AAA", "AAA",
					'A', "ingotTitanium");

		CraftingHelper.addShapedOreRecipe(new ItemStack(ModBlocks.storage, 1, 3),
				 "AAA", "AAA", "AAA",
					'A', "gemSapphire");

		CraftingHelper.addShapedOreRecipe(new ItemStack(ModBlocks.storage, 1, 4),
				 "AAA", "AAA", "AAA",
					'A', "gemRuby");

		CraftingHelper.addShapedOreRecipe(new ItemStack(ModBlocks.storage, 1, 5),
				 "AAA", "AAA", "AAA",
					'A', "gemGreenSapphire");

		CraftingHelper.addShapedOreRecipe(new ItemStack(ModBlocks.storage, 1, 6),
				 "AAA", "AAA", "AAA",
					'A', "ingotChrome");

		CraftingHelper.addShapedOreRecipe(new ItemStack(ModBlocks.storage, 1, 7),
				 "AAA", "AAA", "AAA",
					'A', "ingotElectrum");

		CraftingHelper.addShapedOreRecipe(new ItemStack(ModBlocks.storage, 1, 8),
				 "AAA", "AAA", "AAA",
					'A', "ingotTungsten");

		CraftingHelper.addShapedOreRecipe(new ItemStack(ModBlocks.storage, 1, 9),
				"AAA", "AAA", "AAA",
					'A', "ingotLead");

		CraftingHelper.addShapedOreRecipe(new ItemStack(ModBlocks.storage, 1, 10),
			"AAA", "AAA", "AAA",
				'A', "ingotZinc");

		CraftingHelper.addShapedOreRecipe(new ItemStack(ModBlocks.storage, 1, 11),
			"AAA", "AAA", "AAA",
				'A', "ingotBrass");

		CraftingHelper.addShapedOreRecipe(new ItemStack(ModBlocks.storage, 1, 12),
			"AAA", "AAA", "AAA",
				'A', "ingotSteel");

		CraftingHelper.addShapedOreRecipe(new ItemStack(ModBlocks.storage, 1, 13),
			"AAA", "AAA", "AAA",
				'A', "ingotPlatinum");

		CraftingHelper.addShapedOreRecipe(new ItemStack(ModBlocks.storage, 1, 14),
			"AAA", "AAA", "AAA",
				'A', "ingotNickel");

		CraftingHelper.addShapedOreRecipe(new ItemStack(ModBlocks.storage, 1, 15),
			"AAA", "AAA", "AAA",
				'A', "ingotInvar");

		LogHelper.info("Shapped Recipes Added");
	}

	public static void addShaplessRecipes() {
		CraftingHelper.addShapelessOreRecipe(new ItemStack(ModItems.ingots, 9, 4), "blockSilver");
		CraftingHelper.addShapelessOreRecipe(new ItemStack(ModItems.ingots, 9, 5), "blockAluminium");
		CraftingHelper.addShapelessOreRecipe(new ItemStack(ModItems.ingots, 9, 6), "blockTitanium");
		CraftingHelper.addShapelessOreRecipe(new ItemStack(ModItems.gems, 9, 1), "blockSapphire");
		CraftingHelper.addShapelessOreRecipe(new ItemStack(ModItems.gems, 9, 0), "blockRuby");
		CraftingHelper.addShapelessOreRecipe(new ItemStack(ModItems.gems, 9, 2), "blockGreenSapphire");
		CraftingHelper.addShapelessOreRecipe(new ItemStack(ModItems.ingots, 9, 7), "blockChrome");
		CraftingHelper.addShapelessOreRecipe(new ItemStack(ModItems.ingots, 9, 8), "blockElectrum");
		CraftingHelper.addShapelessOreRecipe(new ItemStack(ModItems.ingots, 9, 9), "blockTungsten");
		CraftingHelper.addShapelessOreRecipe(new ItemStack(ModItems.ingots, 9, 10), "blockLead");
		CraftingHelper.addShapelessOreRecipe(new ItemStack(ModItems.ingots, 9, 11), "blockZinc");
		CraftingHelper.addShapelessOreRecipe(new ItemStack(ModItems.ingots, 9, 12), "blockBrass");
		CraftingHelper.addShapelessOreRecipe(new ItemStack(ModItems.ingots, 9, 13), "blockSteel");
		CraftingHelper.addShapelessOreRecipe(new ItemStack(ModItems.ingots, 9, 14), "blockPlatinum");
		CraftingHelper.addShapelessOreRecipe(new ItemStack(ModItems.ingots, 9, 15), "blockNickel");
		CraftingHelper.addShapelessOreRecipe(new ItemStack(ModItems.ingots, 9, 16), "blockInvar");

		LogHelper.info("Shapless Recipes Added");
	}

	public static void addSmeltingRecipes() {
		GameRegistry.addSmelting(new ItemStack(ModItems.dusts, 1, 27), new ItemStack(Items.iron_ingot), 1F);
		GameRegistry.addSmelting(new ItemStack(ModItems.dusts, 1, 23), new ItemStack(Items.gold_ingot), 1F);
		GameRegistry.addSmelting(new ItemStack(ModItems.dusts, 1, 14), IC2Items.getItem("copperIngot"), 1F);
		GameRegistry.addSmelting(new ItemStack(ModItems.dusts, 1, 51), IC2Items.getItem("tinIngot"), 1F);
		GameRegistry.addSmelting(new ItemStack(ModItems.dusts, 1, 7), IC2Items.getItem("bronzeIngot"), 1F);
		GameRegistry.addSmelting(new ItemStack(ModItems.dusts, 1, 29), IC2Items.getItem("leadIngot"), 1F);
		GameRegistry.addSmelting(new ItemStack(ModItems.dusts, 1, 45), IC2Items.getItem("silverIngot"), 1F);

		LogHelper.info("Smelting Recipes Added");<commit_msg>Fixed wrong dusts being smelted<commit_after>package techreborn.init;

import cpw.mods.fml.common.registry.GameRegistry;
import ic2.api.item.IC2Items;
import net.minecraft.init.Blocks;
import net.minecraft.init.Items;
import net.minecraft.item.ItemStack;
import net.minecraftforge.fluids.FluidRegistry;
import net.minecraftforge.fluids.FluidStack;
import net.minecraftforge.oredict.OreDictionary;
import techreborn.api.recipe.RecipeHandler;
import techreborn.api.recipe.machines.AlloySmelterRecipe;
import techreborn.api.recipe.machines.IndustrialSawmillRecipe;
import techreborn.api.recipe.machines.LatheRecipe;
import techreborn.api.recipe.machines.PlateCuttingMachineRecipe;
import techreborn.config.ConfigTechReborn;
import techreborn.items.ItemDusts;
import techreborn.items.ItemDustsSmall;
import techreborn.items.ItemIngots;
import techreborn.items.ItemParts;
import techreborn.items.ItemPlates;
import techreborn.items.ItemRods;
import techreborn.util.CraftingHelper;
import techreborn.util.LogHelper;

public class ModRecipes {
	public static ConfigTechReborn config;

	public static void init() {
		addShaplessRecipes();
		addShappedRecipes();
		addSmeltingRecipes();
        addAlloySmelterRecipes();
        addLatheRecipes();
        addPlateCuttingMachineRecipes();
		addUUrecipes();
		addHammerRecipes();
        addIndustrialSawmillRecipes();
	}

	public static void addShappedRecipes() {
		// Storage Blocks
		CraftingHelper.addShapedOreRecipe(new ItemStack(ModBlocks.storage, 1, 0),
				 "AAA", "AAA", "AAA",
					'A', "ingotSilver");

		CraftingHelper.addShapedOreRecipe(new ItemStack(ModBlocks.storage, 1, 1),
				 "AAA", "AAA", "AAA",
					'A', "ingotAluminium");

		CraftingHelper.addShapedOreRecipe(new ItemStack(ModBlocks.storage, 1, 2),
				 "AAA", "AAA", "AAA",
					'A', "ingotTitanium");

		CraftingHelper.addShapedOreRecipe(new ItemStack(ModBlocks.storage, 1, 3),
				 "AAA", "AAA", "AAA",
					'A', "gemSapphire");

		CraftingHelper.addShapedOreRecipe(new ItemStack(ModBlocks.storage, 1, 4),
				 "AAA", "AAA", "AAA",
					'A', "gemRuby");

		CraftingHelper.addShapedOreRecipe(new ItemStack(ModBlocks.storage, 1, 5),
				 "AAA", "AAA", "AAA",
					'A', "gemGreenSapphire");

		CraftingHelper.addShapedOreRecipe(new ItemStack(ModBlocks.storage, 1, 6),
				 "AAA", "AAA", "AAA",
					'A', "ingotChrome");

		CraftingHelper.addShapedOreRecipe(new ItemStack(ModBlocks.storage, 1, 7),
				 "AAA", "AAA", "AAA",
					'A', "ingotElectrum");

		CraftingHelper.addShapedOreRecipe(new ItemStack(ModBlocks.storage, 1, 8),
				 "AAA", "AAA", "AAA",
					'A', "ingotTungsten");

		CraftingHelper.addShapedOreRecipe(new ItemStack(ModBlocks.storage, 1, 9),
				"AAA", "AAA", "AAA",
					'A', "ingotLead");

		CraftingHelper.addShapedOreRecipe(new ItemStack(ModBlocks.storage, 1, 10),
			"AAA", "AAA", "AAA",
				'A', "ingotZinc");

		CraftingHelper.addShapedOreRecipe(new ItemStack(ModBlocks.storage, 1, 11),
			"AAA", "AAA", "AAA",
				'A', "ingotBrass");

		CraftingHelper.addShapedOreRecipe(new ItemStack(ModBlocks.storage, 1, 12),
			"AAA", "AAA", "AAA",
				'A', "ingotSteel");

		CraftingHelper.addShapedOreRecipe(new ItemStack(ModBlocks.storage, 1, 13),
			"AAA", "AAA", "AAA",
				'A', "ingotPlatinum");

		CraftingHelper.addShapedOreRecipe(new ItemStack(ModBlocks.storage, 1, 14),
			"AAA", "AAA", "AAA",
				'A', "ingotNickel");

		CraftingHelper.addShapedOreRecipe(new ItemStack(ModBlocks.storage, 1, 15),
			"AAA", "AAA", "AAA",
				'A', "ingotInvar");

		LogHelper.info("Shapped Recipes Added");
	}

	public static void addShaplessRecipes() {
		CraftingHelper.addShapelessOreRecipe(new ItemStack(ModItems.ingots, 9, 4), "blockSilver");
		CraftingHelper.addShapelessOreRecipe(new ItemStack(ModItems.ingots, 9, 5), "blockAluminium");
		CraftingHelper.addShapelessOreRecipe(new ItemStack(ModItems.ingots, 9, 6), "blockTitanium");
		CraftingHelper.addShapelessOreRecipe(new ItemStack(ModItems.gems, 9, 1), "blockSapphire");
		CraftingHelper.addShapelessOreRecipe(new ItemStack(ModItems.gems, 9, 0), "blockRuby");
		CraftingHelper.addShapelessOreRecipe(new ItemStack(ModItems.gems, 9, 2), "blockGreenSapphire");
		CraftingHelper.addShapelessOreRecipe(new ItemStack(ModItems.ingots, 9, 7), "blockChrome");
		CraftingHelper.addShapelessOreRecipe(new ItemStack(ModItems.ingots, 9, 8), "blockElectrum");
		CraftingHelper.addShapelessOreRecipe(new ItemStack(ModItems.ingots, 9, 9), "blockTungsten");
		CraftingHelper.addShapelessOreRecipe(new ItemStack(ModItems.ingots, 9, 10), "blockLead");
		CraftingHelper.addShapelessOreRecipe(new ItemStack(ModItems.ingots, 9, 11), "blockZinc");
		CraftingHelper.addShapelessOreRecipe(new ItemStack(ModItems.ingots, 9, 12), "blockBrass");
		CraftingHelper.addShapelessOreRecipe(new ItemStack(ModItems.ingots, 9, 13), "blockSteel");
		CraftingHelper.addShapelessOreRecipe(new ItemStack(ModItems.ingots, 9, 14), "blockPlatinum");
		CraftingHelper.addShapelessOreRecipe(new ItemStack(ModItems.ingots, 9, 15), "blockNickel");
		CraftingHelper.addShapelessOreRecipe(new ItemStack(ModItems.ingots, 9, 16), "blockInvar");

		LogHelper.info("Shapless Recipes Added");
	}

	public static void addSmeltingRecipes() {
		GameRegistry.addSmelting(ItemDusts.getDustByName("iron", 1), new ItemStack(Items.iron_ingot), 1F);
		GameRegistry.addSmelting(ItemDusts.getDustByName("gold", 1), new ItemStack(Items.gold_ingot), 1F);
		GameRegistry.addSmelting(ItemDusts.getDustByName("copper", 1), IC2Items.getItem("copperIngot"), 1F);
		GameRegistry.addSmelting(ItemDusts.getDustByName("tin", 1), IC2Items.getItem("tinIngot"), 1F);
		GameRegistry.addSmelting(ItemDusts.getDustByName("bronze", 1), IC2Items.getItem("bronzeIngot"), 1F);
		GameRegistry.addSmelting(ItemDusts.getDustByName("lead", 1), IC2Items.getItem("leadIngot"), 1F);
		GameRegistry.addSmelting(ItemDusts.getDustByName("silver", 1), IC2Items.getItem("silverIngot"), 1F);

		LogHelper.info("Smelting Recipes Added");
{'fraction_non_alphanumeric': 0.14263881813550688, 'fraction_numerical': 0.017744948208524368, 'mean_word_length': 6.239704978488015, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5386819', 'n_tokens_mistral': 5028, 'n_tokens_neox': 4323, 'n_words': 701}