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

import com.lothrazar.cyclicmagic.util.Const;
import net.minecraft.init.Items;
import net.minecraft.item.ItemStack;
import net.minecraftforge.common.config.Configuration;
import net.minecraftforge.fml.common.registry.GameRegistry;
import net.minecraft.init.Blocks;

public class RecipeNewRegistry{
	
	public static boolean enabled = true;

	public static void syncConfig(Configuration config){

		//TODO: could config each one by one i guess but this is fine for now
		String category = Const.MODCONF+ "new_recipes";
		

		config.setCategoryComment(category, "Tons of new recipes for existing blocks and items.  Bonemeal to undye wool; repeater and dispenser tweaks;  making player skulls out of the four mob heads...");

		enabled  = config.get(category, "enabled", true).getBoolean();
		
	}

	//static int EXP = 0;
	public static void register(){
		
		RecipeNewRegistry.playerSkull();
		
		RecipeNewRegistry.mushroomBlocks(); 
		
		RecipeNewRegistry.bonemealWool();
		
		RecipeNewRegistry.simpleDispenser();
		
   		RecipeNewRegistry.woolDyeSavings();
		  
   		RecipeNewRegistry.repeaterSimple();
		
   		RecipeNewRegistry.minecartsSimple();


	//https://github.com/PrinceOfAmber/SamsPowerups/blob/master/Recipes/src/main/java/com/lothrazar/samsrecipes/RecipeRegistry.java	
 
	}

	private static void playerSkull(){

		GameRegistry.addShapelessRecipe(new ItemStack(Items.skull,4,Const.skull_player),
				new ItemStack(Items.skull,1,Const.skull_wither),
				new ItemStack(Items.skull,1,Const.skull_skeleton),
				new ItemStack(Items.skull,1,Const.skull_zombie),
				new ItemStack(Items.skull,1,Const.skull_creeper)
				);
	}
   		
	private static void mushroomBlocks(){

		GameRegistry.addRecipe(new ItemStack(Blocks.red_mushroom_block),
				"mm",
				"mm",
				'm', Blocks.red_mushroom);
		GameRegistry.addRecipe(new ItemStack(Blocks.brown_mushroom_block),
				"mm",
				"mm",
				'm', Blocks.brown_mushroom);
	} 
	
	private static void bonemealWool(){

		//use bonemeal to bleach colored wool back to white
		//its easy since we knwo white is 15, and other colours are all from zero up to that<commit_msg>add the removed gold apple recipe<commit_after>package com.lothrazar.cyclicmagic.registry;

import com.lothrazar.cyclicmagic.util.Const;
import net.minecraft.init.Items;
import net.minecraft.item.ItemStack;
import net.minecraftforge.common.config.Configuration;
import net.minecraftforge.fml.common.registry.GameRegistry;
import net.minecraft.init.Blocks;

public class RecipeNewRegistry{
	
	public static boolean enabled = true;

	public static void syncConfig(Configuration config){

		//TODO: could config each one by one i guess but this is fine for now
		String category = Const.MODCONF+ "new_recipes";
		

		config.setCategoryComment(category, "Tons of new recipes for existing blocks and items.  Bonemeal to undye wool; repeater and dispenser tweaks;  making player skulls out of the four mob heads...");

		enabled  = config.get(category, "enabled", true).getBoolean();
		
	}

	//static int EXP = 0;
	public static void register(){
		
		RecipeNewRegistry.playerSkull();
		
		RecipeNewRegistry.mushroomBlocks(); 
		
		RecipeNewRegistry.bonemealWool();
		
		RecipeNewRegistry.simpleDispenser();
		
   		RecipeNewRegistry.woolDyeSavings();
		  
   		RecipeNewRegistry.repeaterSimple();
		
   		RecipeNewRegistry.minecartsSimple();

   		RecipeNewRegistry.notchApple();

	//https://github.com/PrinceOfAmber/SamsPowerups/blob/master/Recipes/src/main/java/com/lothrazar/samsrecipes/RecipeRegistry.java	
 
	}

	private static void notchApple(){
		GameRegistry.addRecipe(new ItemStack(Items.golden_apple,1,1),
				"ggg",
				"gag",
				"ggg",
				'g', new ItemStack(Blocks.gold_block),
				'a', new ItemStack(Items.apple)
				);
		
	}

	private static void playerSkull(){

		GameRegistry.addShapelessRecipe(new ItemStack(Items.skull,4,Const.skull_player),
				new ItemStack(Items.skull,1,Const.skull_wither),
				new ItemStack(Items.skull,1,Const.skull_skeleton),
				new ItemStack(Items.skull,1,Const.skull_zombie),
				new ItemStack(Items.skull,1,Const.skull_creeper)
				);
	}
   		
	private static void mushroomBlocks(){

		GameRegistry.addRecipe(new ItemStack(Blocks.red_mushroom_block),
				"mm",
				"mm",
				'm', Blocks.red_mushroom);
		GameRegistry.addRecipe(new ItemStack(Blocks.brown_mushroom_block),
				"mm",
				"mm",
				'm', Blocks.brown_mushroom);
	} 
	
	private static void bonemealWool(){

		//use bonemeal to bleach colored wool back to white
		//its easy since we knwo white is 15, and other colours are all from zero up to that
{'fraction_non_alphanumeric': 0.1043741879601559, 'fraction_numerical': 0.0038977912516240795, 'mean_word_length': 4.309195402298851, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '4741974', 'n_tokens_mistral': 1723, 'n_tokens_neox': 1503, 'n_words': 328}