<commit_before>package com.lothrazar.cyclicmagic.registry;

import com.lothrazar.cyclicmagic.util.Const;
import com.lothrazar.cyclicmagic.util.UtilRecipe;

import net.minecraft.init.Blocks;
import net.minecraft.init.Items;
import net.minecraft.item.ItemStack;
import net.minecraftforge.common.config.Configuration;
import net.minecraftforge.fml.common.registry.GameRegistry;

public class RecipeAlterRegistry {
	// does not handle recipes for items added new in the mod

	public static boolean enabled = false;

	public static void register() {
		if(enabled == false){
			return;
		}

		smoothstoneRequired();

		furnaceNeedsCoal();
	}

	public static void syncConfig(Configuration config) {

		String category = Const.ConfigCategory.recipes;

		enabled = config.get(category, "AlteredStone", 
				false,
				"WARNING: this removes vanilla recipes:  True will mean that the furnace recipe requires coal in the middle, and stone tools require smoothstone.")
				.getBoolean();
	}

	private static void furnaceNeedsCoal() {

		UtilRecipe.removeRecipe(Blocks.FURNACE);

		GameRegistry.addRecipe(new ItemStack(Blocks.FURNACE), "bbb", "bcb", "bbb", 'b', Blocks.COBBLESTONE, 'c', Items.COAL);
	}

	private static void smoothstoneRequired() {

		UtilRecipe.removeRecipe(Items.STONE_PICKAXE);

//		GameRegistry.addRecipe(
//				new ItemStack(Items.STONE_PICKAXE, 1, UtilItem.getMaxDmgFraction(Items.STONE_PICKAXE, 4)),
//				"sss", " t ", " t ", 's', Blocks.COBBLESTONE, 't', Items.STICK);
		 
//		GameRegistry.addRecipe(new ItemStack(Items.STONE_PICKAXE, 1, UtilItem.getMaxDmgFraction(Items.STONE_PICKAXE, 4)), "sss", " t ", " t ", 's', Blocks.COBBLESTONE, 't', Items.STICK);
		GameRegistry.addRecipe(new ItemStack(Items.STONE_PICKAXE), 
				"sss", " t ", " t ", 's', Blocks.STONE, 't', Items.STICK);

		UtilRecipe.removeRecipe(Items.STONE_SWORD);

//		GameRegistry.addRecipe(new ItemStack(Items.STONE_SWORD, 1, UtilItem.getMaxDmgFraction(Items.STONE_SWORD, 4)), " s ", " s ", " t ", 's', Blocks.COBBLESTONE, 't', Items.STICK);
		GameRegistry.addRecipe(new ItemStack(Items.STONE_SWORD), " s ", " s ", " t ", 's', Blocks.STONE, 't', Items.STICK);

		UtilRecipe.removeRecipe(Items.STONE_AXE);

//		GameRegistry.addRecipe(new ItemStack(Items.STONE_AXE, 1, UtilItem.getMaxDmgFraction(Items.STONE_AXE, 4)), "ss ", "st ", " t ", 's', Blocks.COBBLESTONE, 't', Items.STICK);
//		GameRegistry.addRecipe(new ItemStack(Items.STONE_AXE, 1, UtilItem.getMaxDmgFraction(Items.STONE_AXE, 4)), " ss", " ts", " t ", 's', Blocks.COBBLESTONE, 't', Items.STICK);
		GameRegistry.addRecipe(new ItemStack(Items.STONE_AXE), "ss ", "st ", " t ", 's', Blocks.STONE, 't', Items.STICK);
		GameRegistry.addRecipe(new ItemStack(Items.STONE_AXE), " ss", " ts", " t ", 's', Blocks.STONE, 't', Items.STICK);

		UtilRecipe.removeRecipe(Items.STONE_HOE);

//		GameRegistry.addRecipe(new ItemStack(Items.STONE_HOE, 1, UtilItem.getMaxDmgFraction(Items.STONE_HOE, 4)), "ss ", " t ", " t ", 's', Blocks.COBBLESTONE, 't', Items.STICK);
//		GameRegistry.addRecipe(new ItemStack(Items.STONE_HOE, 1, UtilItem.getMaxDmgFraction(Items.STONE_HOE, 4)), " ss", " t ", " t ", 's', Blocks.COBBLESTONE, 't', Items.STICK);
		GameRegistry.addRecipe(new ItemStack(Items.STONE_HOE), "ss ", " t ", " t ", 's', Blocks.STONE, 't', Items.STICK);
		GameRegistry.addRecipe(new ItemStack(Items.STONE_HOE), " ss", " t ", " t ", 's', Blocks.STONE, 't', Items.STICK);

		UtilRecipe.removeRecipe(Items.STONE_SHOVEL);

//		GameRegistry.addRecipe(new ItemStack(Items.STONE_SHOVEL, 1, UtilItem.getMaxDmgFraction(Items.STONE_SHOVEL, 4)), " s ", " t ", " t ", 's', Blocks.COBBLESTONE, 't', Items.STICK);
		GameRegistry.addRecipe(new ItemStack(Items.STONE_SHOVEL), " s ", " t ", " t ", 's', Blocks.STONE, 't', Items.STICK);
	
	
//		GameRegistry.addRecipe(new ItemStack(Items.IRON_CHESTPLATE, 1, UtilItem.getMaxDmgFraction(Items.IRON_CHESTPLATE, 2)), 
//				"i i", "iii", "iii", 'i',Items.IRON_INGOT);
//
//		GameRegistry.addShapelessRecipe(new ItemStack(Items.IRON_CHESTPLATE),
//				new ItemStack(Items.IRON_CHESTPLATE, 1, OreDictionary.WILDCARD_VALUE),
//				new ItemStack(Items.LEATHER_CHESTPLATE, 1, OreDictionary.WILDCARD_VALUE)
//				);
	
	}

}
<commit_msg>config file one last typo<commit_after>package com.lothrazar.cyclicmagic.registry;

import com.lothrazar.cyclicmagic.util.Const;
import com.lothrazar.cyclicmagic.util.UtilRecipe;

import net.minecraft.init.Blocks;
import net.minecraft.init.Items;
import net.minecraft.item.ItemStack;
import net.minecraftforge.common.config.Configuration;
import net.minecraftforge.fml.common.registry.GameRegistry;

public class RecipeAlterRegistry {
	// does not handle recipes for items added new in the mod

	public static boolean enabled = false;

	public static void register() {
		if(enabled == false){
			return;
		}

		smoothstoneRequired();

		furnaceNeedsCoal();
	}

	public static void syncConfig(Configuration config) {

		String category = Const.ConfigCategory.recipes;

		enabled = config.get(category, "Altered Stone", 
				false,
				"WARNING: this removes vanilla recipes:  True will mean that the furnace recipe requires coal in the middle, and stone tools require smoothstone.")
				.getBoolean();
	}

	private static void furnaceNeedsCoal() {

		UtilRecipe.removeRecipe(Blocks.FURNACE);

		GameRegistry.addRecipe(new ItemStack(Blocks.FURNACE), "bbb", "bcb", "bbb", 'b', Blocks.COBBLESTONE, 'c', Items.COAL);
	}

	private static void smoothstoneRequired() {

		UtilRecipe.removeRecipe(Items.STONE_PICKAXE);

//		GameRegistry.addRecipe(
//				new ItemStack(Items.STONE_PICKAXE, 1, UtilItem.getMaxDmgFraction(Items.STONE_PICKAXE, 4)),
//				"sss", " t ", " t ", 's', Blocks.COBBLESTONE, 't', Items.STICK);
		 
//		GameRegistry.addRecipe(new ItemStack(Items.STONE_PICKAXE, 1, UtilItem.getMaxDmgFraction(Items.STONE_PICKAXE, 4)), "sss", " t ", " t ", 's', Blocks.COBBLESTONE, 't', Items.STICK);
		GameRegistry.addRecipe(new ItemStack(Items.STONE_PICKAXE), 
				"sss", " t ", " t ", 's', Blocks.STONE, 't', Items.STICK);

		UtilRecipe.removeRecipe(Items.STONE_SWORD);

//		GameRegistry.addRecipe(new ItemStack(Items.STONE_SWORD, 1, UtilItem.getMaxDmgFraction(Items.STONE_SWORD, 4)), " s ", " s ", " t ", 's', Blocks.COBBLESTONE, 't', Items.STICK);
		GameRegistry.addRecipe(new ItemStack(Items.STONE_SWORD), " s ", " s ", " t ", 's', Blocks.STONE, 't', Items.STICK);

		UtilRecipe.removeRecipe(Items.STONE_AXE);

//		GameRegistry.addRecipe(new ItemStack(Items.STONE_AXE, 1, UtilItem.getMaxDmgFraction(Items.STONE_AXE, 4)), "ss ", "st ", " t ", 's', Blocks.COBBLESTONE, 't', Items.STICK);
//		GameRegistry.addRecipe(new ItemStack(Items.STONE_AXE, 1, UtilItem.getMaxDmgFraction(Items.STONE_AXE, 4)), " ss", " ts", " t ", 's', Blocks.COBBLESTONE, 't', Items.STICK);
		GameRegistry.addRecipe(new ItemStack(Items.STONE_AXE), "ss ", "st ", " t ", 's', Blocks.STONE, 't', Items.STICK);
		GameRegistry.addRecipe(new ItemStack(Items.STONE_AXE), " ss", " ts", " t ", 's', Blocks.STONE, 't', Items.STICK);

		UtilRecipe.removeRecipe(Items.STONE_HOE);

//		GameRegistry.addRecipe(new ItemStack(Items.STONE_HOE, 1, UtilItem.getMaxDmgFraction(Items.STONE_HOE, 4)), "ss ", " t ", " t ", 's', Blocks.COBBLESTONE, 't', Items.STICK);
//		GameRegistry.addRecipe(new ItemStack(Items.STONE_HOE, 1, UtilItem.getMaxDmgFraction(Items.STONE_HOE, 4)), " ss", " t ", " t ", 's', Blocks.COBBLESTONE, 't', Items.STICK);
		GameRegistry.addRecipe(new ItemStack(Items.STONE_HOE), "ss ", " t ", " t ", 's', Blocks.STONE, 't', Items.STICK);
		GameRegistry.addRecipe(new ItemStack(Items.STONE_HOE), " ss", " t ", " t ", 's', Blocks.STONE, 't', Items.STICK);

		UtilRecipe.removeRecipe(Items.STONE_SHOVEL);

//		GameRegistry.addRecipe(new ItemStack(Items.STONE_SHOVEL, 1, UtilItem.getMaxDmgFraction(Items.STONE_SHOVEL, 4)), " s ", " t ", " t ", 's', Blocks.COBBLESTONE, 't', Items.STICK);
		GameRegistry.addRecipe(new ItemStack(Items.STONE_SHOVEL), " s ", " t ", " t ", 's', Blocks.STONE, 't', Items.STICK);
	
	
//		GameRegistry.addRecipe(new ItemStack(Items.IRON_CHESTPLATE, 1, UtilItem.getMaxDmgFraction(Items.IRON_CHESTPLATE, 2)), 
//				"i i", "iii", "iii", 'i',Items.IRON_INGOT);
//
//		GameRegistry.addShapelessRecipe(new ItemStack(Items.IRON_CHESTPLATE),
//				new ItemStack(Items.IRON_CHESTPLATE, 1, OreDictionary.WILDCARD_VALUE),
//				new ItemStack(Items.LEATHER_CHESTPLATE, 1, OreDictionary.WILDCARD_VALUE)
//				);
	
	}

}

{'fraction_non_alphanumeric': 0.1630266141544337, 'fraction_numerical': 0.004773839360305526, 'mean_word_length': 4.985714285714286, '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': '3635445', 'n_tokens_mistral': 3451, 'n_tokens_neox': 3217, 'n_words': 569}