Jump to content

[1.7.2] java.lang.OutOfMemoryError when adding a bunch of recipes.


SackCastellon

Recommended Posts

I have the following problem, I'm trying to add more than... 500 new recipes to minecraft, but when i run minecraft i get this crash:

 


[20:08:18] [Client thread/INFO] [sKC Logger]: [sKC-BetterWood] Loading recipes.
[20:17:50] [Client thread/ERROR] [LaunchWrapper]: Unable to launch
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_25]
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_25]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_25]
at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.7.0_25]
at net.minecraft.launchwrapper.Launch.launch(Launch.java:134) [launchwrapper-1.9.jar:?]
at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.9.jar:?]
Caused by: java.lang.OutOfMemoryError: GC overhead limit exceeded
at net.minecraft.crash.CrashReport.populateEnvironment(CrashReport.java:113) ~[CrashReport.class:?]
at net.minecraft.crash.CrashReport.<init>(CrashReport.java:57) ~[CrashReport.class:?]
at net.minecraft.crash.CrashReport.makeCrashReport(CrashReport.java:427) ~[CrashReport.class:?]
at net.minecraft.client.Minecraft.run(Minecraft.java:935) ~[Minecraft.class:?]
at net.minecraft.client.main.Main.main(Main.java:112) ~[Main.class:?]
... 6 more
Exception in thread "Client thread" java.lang.OutOfMemoryError: GC overhead limit exceeded

 

(As you can see on the crash it takes about 10 minutes to load to try to load the recipes, and then it crash)

 

This is my code:

 

package SackCastellon.betterwood.loader;

import java.util.Iterator;
import java.util.List;

import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.item.crafting.CraftingManager;
import net.minecraft.item.crafting.IRecipe;
import SackCastellon.betterwood.api.Blocks;
import SackCastellon.betterwood.api.Items;
import SackCastellon.betterwood.reference.Reference;
import SackCastellon.core.helper.LogHelper;
import cpw.mods.fml.common.registry.GameRegistry;

public class RecipeLoader
{
private static final int[] woodDamage = {0, 1, 2, 3, 4, 5};

public static void init()
{
	vanilla.init();
}

private static class vanilla
{
	private static void init()
	{
		remove();
		patch();

		/* Blocks */
		bookshelf();
		button();
		fence();
		fenceGate();
		pressurePlate();
		lever();
		torchOn();
		ladder();

		/* Items */
		sword();
		shovel();
		pickaxe();
		axe();
		hoe();
		bow();
	}

	@SuppressWarnings("unchecked")
	private static void remove()
	{
		List<IRecipe> recipe = CraftingManager.getInstance().getRecipeList();

		Iterator<IRecipe> r = recipe.iterator();
          
		while (r.hasNext()) {

			ItemStack is = r.next().getRecipeOutput();

			if (is != null && (
					is.getItem() == net.minecraft.init.Items.stick ||
					is.getItem() == net.minecraft.init.Items.wooden_door ||
					is.getItem() == net.minecraft.init.Items.bowl ||
					is.getItem() == net.minecraft.init.Items.wooden_sword ||
					is.getItem() == net.minecraft.init.Items.stone_sword ||
					is.getItem() == net.minecraft.init.Items.iron_sword ||
					is.getItem() == net.minecraft.init.Items.golden_sword ||
					is.getItem() == net.minecraft.init.Items.diamond_sword ||
					is.getItem() == net.minecraft.init.Items.wooden_shovel ||
					is.getItem() == net.minecraft.init.Items.stone_shovel ||
					is.getItem() == net.minecraft.init.Items.iron_shovel ||
					is.getItem() == net.minecraft.init.Items.golden_shovel ||
					is.getItem() == net.minecraft.init.Items.diamond_shovel ||
					is.getItem() == net.minecraft.init.Items.wooden_pickaxe ||
					is.getItem() == net.minecraft.init.Items.stone_pickaxe ||
					is.getItem() == net.minecraft.init.Items.iron_pickaxe ||
					is.getItem() == net.minecraft.init.Items.golden_pickaxe ||
					is.getItem() == net.minecraft.init.Items.diamond_pickaxe ||
					is.getItem() == net.minecraft.init.Items.wooden_axe ||
					is.getItem() == net.minecraft.init.Items.stone_axe ||
					is.getItem() == net.minecraft.init.Items.iron_axe ||
					is.getItem() == net.minecraft.init.Items.golden_axe ||
					is.getItem() == net.minecraft.init.Items.diamond_axe ||
					is.getItem() == net.minecraft.init.Items.wooden_hoe ||
					is.getItem() == net.minecraft.init.Items.stone_hoe ||
					is.getItem() == net.minecraft.init.Items.iron_hoe ||
					is.getItem() == net.minecraft.init.Items.golden_hoe ||
					is.getItem() == net.minecraft.init.Items.diamond_hoe ||
					is.getItem() == Item.getItemFromBlock(net.minecraft.init.Blocks.fence) ||
					is.getItem() == Item.getItemFromBlock(net.minecraft.init.Blocks.fence_gate) ||
					is.getItem() == Item.getItemFromBlock(net.minecraft.init.Blocks.ladder) ||
					is.getItem() == net.minecraft.init.Items.sign ||
					is.getItem() == Item.getItemFromBlock(net.minecraft.init.Blocks.rail) ||
					is.getItem() == Item.getItemFromBlock(net.minecraft.init.Blocks.golden_rail) ||
					is.getItem() == net.minecraft.init.Items.fishing_rod ||
					is.getItem() == net.minecraft.init.Items.item_frame ||
					is.getItem() == net.minecraft.init.Items.painting ||
					is.getItem() == Item.getItemFromBlock(net.minecraft.init.Blocks.lever) ||
					is.getItem() == Item.getItemFromBlock(net.minecraft.init.Blocks.tripwire) ||
					is.getItem() == Item.getItemFromBlock(net.minecraft.init.Blocks.redstone_torch) ||
					is.getItem() == net.minecraft.init.Items.bow ||
					is.getItem() == Item.getItemFromBlock(net.minecraft.init.Blocks.wooden_button) ||
					is.getItem() == Item.getItemFromBlock(net.minecraft.init.Blocks.wooden_pressure_plate) ||
					is.getItem() == Item.getItemFromBlock(net.minecraft.init.Blocks.bookshelf) ||
					is.getItem() == Item.getItemFromBlock(net.minecraft.init.Blocks.lit_pumpkin)))
			{
				r.remove();
			}
		}
	}

	private static void patch()
	{
		for(int a = 0; a < 6; ++a){
		for(int b = 0; b < 6; ++b){
		for(int c = 0; c < 6; ++c){
		for(int d = 0; d < 6; ++d){
		for(int e = 0; e < 6; ++e){
		for(int f = 0; f < 6; ++f){

		//	LogHelper.info(Reference.ID, "Loading " + a + b + c + d + e + f + " of ");

			GameRegistry.addShapelessRecipe(new ItemStack(Items.Soup, 1, woodDamage[a]), new Object[] {new ItemStack(net.minecraft.init.Blocks.red_mushroom), new ItemStack(net.minecraft.init.Blocks.brown_mushroom), new ItemStack(Items.Bowl, 1, woodDamage[a])});

		// Stick //=======================================================================================================//

			if(a == b)
			{
				GameRegistry.addRecipe(new ItemStack(Items.Stick, 4, woodDamage[a]), new Object[] {"P", "P", 'P', new ItemStack(net.minecraft.init.Blocks.planks, 1, woodDamage[a])});
			}

			else
			{
				GameRegistry.addRecipe(new ItemStack(net.minecraft.init.Items.stick, 4), new Object[] {"X", "S", 'X', new ItemStack(net.minecraft.init.Blocks.planks, 1, woodDamage[a]), 'S', new ItemStack(net.minecraft.init.Blocks.planks, 1, woodDamage[b])});
			}

		// Bowl //=======================================================================================================//

			if(a == b && a == c)
			{
		        GameRegistry.addRecipe(new ItemStack(Items.Bowl, 4, woodDamage[a]), new Object[] {"P P", " P ", 'P', new ItemStack(net.minecraft.init.Blocks.planks, 1, woodDamage[a])});
			}

			else
			{
				GameRegistry.addRecipe(new ItemStack(net.minecraft.init.Items.bowl, 4), new Object[] {"a b", " c ", 'a', new ItemStack(net.minecraft.init.Blocks.planks, 1, woodDamage[a]), 'b', new ItemStack(net.minecraft.init.Blocks.planks, 1, woodDamage[b]), 'c', new ItemStack(net.minecraft.init.Blocks.planks, 1, woodDamage[c])});
			}

		// Sword //=======================================================================================================//

			if(!(a == b))
			{
				GameRegistry.addRecipe(new ItemStack(net.minecraft.init.Items.wooden_sword), new Object[] {"a", "b", "c", 'a', new ItemStack(net.minecraft.init.Blocks.planks, 1, woodDamage[a]), 'b', new ItemStack(net.minecraft.init.Blocks.planks, 1, woodDamage[b]), 'c', new ItemStack(Items.Stick, 1, woodDamage[c])});
			}

			GameRegistry.addRecipe(new ItemStack(net.minecraft.init.Items.wooden_sword), new Object[] {"a", "b", "c", 'a', new ItemStack(net.minecraft.init.Blocks.planks, 1, woodDamage[a]), 'b', new ItemStack(net.minecraft.init.Blocks.planks, 1, woodDamage[b]), 'c', new ItemStack(net.minecraft.init.Items.stick)});

			GameRegistry.addRecipe(new ItemStack(net.minecraft.init.Items.stone_sword), new Object[] {"a", "a", "c", 'a', new ItemStack(net.minecraft.init.Blocks.cobblestone), 'c', new ItemStack(net.minecraft.init.Items.stick)});

			GameRegistry.addRecipe(new ItemStack(net.minecraft.init.Items.iron_sword), new Object[] {"a", "a", "c", 'a', new ItemStack(net.minecraft.init.Items.iron_ingot), 'c', new ItemStack(net.minecraft.init.Items.stick)});

			GameRegistry.addRecipe(new ItemStack(net.minecraft.init.Items.golden_sword), new Object[] {"a", "a", "c", 'a', new ItemStack(net.minecraft.init.Items.gold_ingot), 'c', new ItemStack(net.minecraft.init.Items.stick)});

			GameRegistry.addRecipe(new ItemStack(net.minecraft.init.Items.diamond_sword), new Object[] {"a", "a", "c", 'a', new ItemStack(net.minecraft.init.Items.diamond), 'c', new ItemStack(net.minecraft.init.Items.stick)});

		// Shovel //=======================================================================================================//

			if(!(b == c))
			{
				GameRegistry.addRecipe(new ItemStack(net.minecraft.init.Items.wooden_shovel), new Object[] {"a", "b", "c", 'a', new ItemStack(net.minecraft.init.Blocks.planks, 1, woodDamage[a]), 'b', new ItemStack(Items.Stick, 1, woodDamage[b]), 'c', new ItemStack(Items.Stick, 1, woodDamage[c])});
				GameRegistry.addRecipe(new ItemStack(net.minecraft.init.Items.stone_shovel), new Object[] {"a", "b", "c", 'a', new ItemStack(net.minecraft.init.Blocks.cobblestone), 'b', new ItemStack(Items.Stick, 1, woodDamage[b]), 'c', new ItemStack(Items.Stick, 1, woodDamage[c])});
				GameRegistry.addRecipe(new ItemStack(net.minecraft.init.Items.iron_shovel), new Object[] {"a", "b", "c", 'a', new ItemStack(net.minecraft.init.Items.iron_ingot), 'b', new ItemStack(Items.Stick, 1, woodDamage[b]), 'c', new ItemStack(Items.Stick, 1, woodDamage[c])});
				GameRegistry.addRecipe(new ItemStack(net.minecraft.init.Items.golden_shovel), new Object[] {"a", "b", "c", 'a', new ItemStack(net.minecraft.init.Items.gold_ingot), 'b', new ItemStack(Items.Stick, 1, woodDamage[b]), 'c', new ItemStack(Items.Stick, 1, woodDamage[c])});
				GameRegistry.addRecipe(new ItemStack(net.minecraft.init.Items.diamond_shovel), new Object[] {"a", "b", "c", 'a', new ItemStack(net.minecraft.init.Items.diamond), 'b', new ItemStack(Items.Stick, 1, woodDamage[b]), 'c', new ItemStack(Items.Stick, 1, woodDamage[c])});
			}

			GameRegistry.addRecipe(new ItemStack(net.minecraft.init.Items.wooden_shovel), new Object[] {"a", "b", "c", 'a', new ItemStack(net.minecraft.init.Blocks.planks, 1, woodDamage[a]), 'b', new ItemStack(net.minecraft.init.Items.stick), 'c', new ItemStack(net.minecraft.init.Items.stick)});
			GameRegistry.addRecipe(new ItemStack(net.minecraft.init.Items.wooden_shovel), new Object[] {"a", "b", "c", 'a', new ItemStack(net.minecraft.init.Blocks.planks, 1, woodDamage[a]), 'b', new ItemStack(Items.Stick, 1, woodDamage[b]), 'c', new ItemStack(net.minecraft.init.Items.stick)});
			GameRegistry.addRecipe(new ItemStack(net.minecraft.init.Items.wooden_shovel), new Object[] {"a", "b", "c", 'a', new ItemStack(net.minecraft.init.Blocks.planks, 1, woodDamage[a]), 'b', new ItemStack(net.minecraft.init.Items.stick), 'c', new ItemStack(Items.Stick, 1, woodDamage[c])});

			GameRegistry.addRecipe(new ItemStack(net.minecraft.init.Items.stone_shovel), new Object[] {"a", "b", "c", 'a', new ItemStack(net.minecraft.init.Blocks.cobblestone), 'b', new ItemStack(net.minecraft.init.Items.stick), 'c', new ItemStack(net.minecraft.init.Items.stick)});
			GameRegistry.addRecipe(new ItemStack(net.minecraft.init.Items.stone_shovel), new Object[] {"a", "b", "c", 'a', new ItemStack(net.minecraft.init.Blocks.cobblestone), 'b', new ItemStack(Items.Stick, 1, woodDamage[b]), 'c', new ItemStack(net.minecraft.init.Items.stick)});
			GameRegistry.addRecipe(new ItemStack(net.minecraft.init.Items.stone_shovel), new Object[] {"a", "b", "c", 'a', new ItemStack(net.minecraft.init.Blocks.cobblestone), 'b', new ItemStack(net.minecraft.init.Items.stick), 'c', new ItemStack(Items.Stick, 1, woodDamage[c])});

			GameRegistry.addRecipe(new ItemStack(net.minecraft.init.Items.iron_shovel), new Object[] {"a", "b", "c", 'a', new ItemStack(net.minecraft.init.Items.iron_ingot), 'b', new ItemStack(net.minecraft.init.Items.stick), 'c', new ItemStack(net.minecraft.init.Items.stick)});
			GameRegistry.addRecipe(new ItemStack(net.minecraft.init.Items.iron_shovel), new Object[] {"a", "b", "c", 'a', new ItemStack(net.minecraft.init.Items.iron_ingot), 'b', new ItemStack(Items.Stick, 1, woodDamage[b]), 'c', new ItemStack(net.minecraft.init.Items.stick)});
			GameRegistry.addRecipe(new ItemStack(net.minecraft.init.Items.iron_shovel), new Object[] {"a", "b", "c", 'a', new ItemStack(net.minecraft.init.Items.iron_ingot), 'b', new ItemStack(net.minecraft.init.Items.stick), 'c', new ItemStack(Items.Stick, 1, woodDamage[c])});

			GameRegistry.addRecipe(new ItemStack(net.minecraft.init.Items.golden_shovel), new Object[] {"a", "b", "c", 'a', new ItemStack(net.minecraft.init.Items.gold_ingot), 'b', new ItemStack(net.minecraft.init.Items.stick), 'c', new ItemStack(net.minecraft.init.Items.stick)});
			GameRegistry.addRecipe(new ItemStack(net.minecraft.init.Items.golden_shovel), new Object[] {"a", "b", "c", 'a', new ItemStack(net.minecraft.init.Items.gold_ingot), 'b', new ItemStack(Items.Stick, 1, woodDamage[b]), 'c', new ItemStack(net.minecraft.init.Items.stick)});
			GameRegistry.addRecipe(new ItemStack(net.minecraft.init.Items.golden_shovel), new Object[] {"a", "b", "c", 'a', new ItemStack(net.minecraft.init.Items.gold_ingot), 'b', new ItemStack(net.minecraft.init.Items.stick), 'c', new ItemStack(Items.Stick, 1, woodDamage[c])});

			GameRegistry.addRecipe(new ItemStack(net.minecraft.init.Items.diamond_shovel), new Object[] {"a", "b", "c", 'a', new ItemStack(net.minecraft.init.Items.diamond), 'b', new ItemStack(net.minecraft.init.Items.stick), 'c', new ItemStack(net.minecraft.init.Items.stick)});
			GameRegistry.addRecipe(new ItemStack(net.minecraft.init.Items.diamond_shovel), new Object[] {"a", "b", "c", 'a', new ItemStack(net.minecraft.init.Items.diamond), 'b', new ItemStack(Items.Stick, 1, woodDamage[b]), 'c', new ItemStack(net.minecraft.init.Items.stick)});
			GameRegistry.addRecipe(new ItemStack(net.minecraft.init.Items.diamond_shovel), new Object[] {"a", "b", "c", 'a', new ItemStack(net.minecraft.init.Items.diamond), 'b', new ItemStack(net.minecraft.init.Items.stick), 'c', new ItemStack(Items.Stick, 1, woodDamage[c])});

		// Pickaxe //=======================================================================================================//

			if(!(a == b && a == c) || !(d == e))
			{
				GameRegistry.addRecipe(new ItemStack(net.minecraft.init.Items.wooden_pickaxe), new Object[] {"abc", " d ", " e ", 'a', new ItemStack(net.minecraft.init.Blocks.planks, 1, woodDamage[a]), 'b', new ItemStack(net.minecraft.init.Blocks.planks, 1, woodDamage[b]), 'c', new ItemStack(net.minecraft.init.Blocks.planks, 1, woodDamage[c]), 'd', new ItemStack(Items.Stick, 1, woodDamage[d]), 'e', new ItemStack(Items.Stick, 1, woodDamage[e])});
				GameRegistry.addRecipe(new ItemStack(net.minecraft.init.Items.stone_pickaxe), new Object[] {"aaa", " d ", " e ", 'a', new ItemStack(net.minecraft.init.Blocks.cobblestone), 'd', new ItemStack(Items.Stick, 1, woodDamage[d]), 'e', new ItemStack(Items.Stick, 1, woodDamage[e])});
				GameRegistry.addRecipe(new ItemStack(net.minecraft.init.Items.iron_pickaxe), new Object[] {"aaa", " d ", " e ", 'a', new ItemStack(net.minecraft.init.Items.iron_ingot), 'd', new ItemStack(Items.Stick, 1, woodDamage[d]), 'e', new ItemStack(Items.Stick, 1, woodDamage[e])});
				GameRegistry.addRecipe(new ItemStack(net.minecraft.init.Items.golden_pickaxe), new Object[] {"aaa", " d ", " e ", 'a', new ItemStack(net.minecraft.init.Items.gold_ingot), 'd', new ItemStack(Items.Stick, 1, woodDamage[d]), 'e', new ItemStack(Items.Stick, 1, woodDamage[e])});
				GameRegistry.addRecipe(new ItemStack(net.minecraft.init.Items.diamond_pickaxe), new Object[] {"aaa", " d ", " e ", 'a', new ItemStack(net.minecraft.init.Items.diamond), 'd', new ItemStack(Items.Stick, 1, woodDamage[d]), 'e', new ItemStack(Items.Stick, 1, woodDamage[e])});
			}

			GameRegistry.addRecipe(new ItemStack(net.minecraft.init.Items.wooden_pickaxe), new Object[] {"abc", " Z ", " X ", 'a', new ItemStack(net.minecraft.init.Blocks.planks, 1, woodDamage[a]), 'b', new ItemStack(net.minecraft.init.Blocks.planks, 1, woodDamage[b]), 'c', new ItemStack(net.minecraft.init.Blocks.planks, 1, woodDamage[c]), 'X', new ItemStack(net.minecraft.init.Items.stick), 'Z', new ItemStack(Items.Stick, 1, woodDamage[d])});
			GameRegistry.addRecipe(new ItemStack(net.minecraft.init.Items.wooden_pickaxe), new Object[] {"abc", " X ", " Z ", 'a', new ItemStack(net.minecraft.init.Blocks.planks, 1, woodDamage[a]), 'b', new ItemStack(net.minecraft.init.Blocks.planks, 1, woodDamage[b]), 'c', new ItemStack(net.minecraft.init.Blocks.planks, 1, woodDamage[c]), 'X', new ItemStack(net.minecraft.init.Items.stick), 'Z', new ItemStack(Items.Stick, 1, woodDamage[d])});
			GameRegistry.addRecipe(new ItemStack(net.minecraft.init.Items.wooden_pickaxe), new Object[] {"abc", " X ", " X ", 'a', new ItemStack(net.minecraft.init.Blocks.planks, 1, woodDamage[a]), 'b', new ItemStack(net.minecraft.init.Blocks.planks, 1, woodDamage[b]), 'c', new ItemStack(net.minecraft.init.Blocks.planks, 1, woodDamage[c]), 'X', new ItemStack(net.minecraft.init.Items.stick)});

			GameRegistry.addRecipe(new ItemStack(net.minecraft.init.Items.stone_pickaxe), new Object[] {"aaa", " Z ", " X ", 'a', new ItemStack(net.minecraft.init.Blocks.cobblestone), 'X', new ItemStack(net.minecraft.init.Items.stick), 'Z', new ItemStack(Items.Stick, 1, woodDamage[d])});
			GameRegistry.addRecipe(new ItemStack(net.minecraft.init.Items.stone_pickaxe), new Object[] {"aaa", " X ", " Z ", 'a', new ItemStack(net.minecraft.init.Blocks.cobblestone), 'X', new ItemStack(net.minecraft.init.Items.stick), 'Z', new ItemStack(Items.Stick, 1, woodDamage[d])});
			GameRegistry.addRecipe(new ItemStack(net.minecraft.init.Items.stone_pickaxe), new Object[] {"aaa", " X ", " X ", 'a', new ItemStack(net.minecraft.init.Blocks.cobblestone), 'X', new ItemStack(net.minecraft.init.Items.stick)});

			GameRegistry.addRecipe(new ItemStack(net.minecraft.init.Items.iron_pickaxe), new Object[] {"aaa", " Z ", " X ", 'a', new ItemStack(net.minecraft.init.Items.iron_ingot), 'X', new ItemStack(net.minecraft.init.Items.stick), 'Z', new ItemStack(Items.Stick, 1, woodDamage[d])});
			GameRegistry.addRecipe(new ItemStack(net.minecraft.init.Items.iron_pickaxe), new Object[] {"aaa", " X ", " Z ", 'a', new ItemStack(net.minecraft.init.Items.iron_ingot), 'X', new ItemStack(net.minecraft.init.Items.stick), 'Z', new ItemStack(Items.Stick, 1, woodDamage[d])});
			GameRegistry.addRecipe(new ItemStack(net.minecraft.init.Items.iron_pickaxe), new Object[] {"aaa", " X ", " X ", 'a', new ItemStack(net.minecraft.init.Items.iron_ingot), 'X', new ItemStack(net.minecraft.init.Items.stick)});

			GameRegistry.addRecipe(new ItemStack(net.minecraft.init.Items.golden_pickaxe), new Object[] {"aaa", " Z ", " X ", 'a', new ItemStack(net.minecraft.init.Items.gold_ingot), 'X', new ItemStack(net.minecraft.init.Items.stick), 'Z', new ItemStack(Items.Stick, 1, woodDamage[d])});
			GameRegistry.addRecipe(new ItemStack(net.minecraft.init.Items.golden_pickaxe), new Object[] {"aaa", " X ", " Z ", 'a', new ItemStack(net.minecraft.init.Items.gold_ingot), 'X', new ItemStack(net.minecraft.init.Items.stick), 'Z', new ItemStack(Items.Stick, 1, woodDamage[d])});
			GameRegistry.addRecipe(new ItemStack(net.minecraft.init.Items.golden_pickaxe), new Object[] {"aaa", " X ", " X ", 'a', new ItemStack(net.minecraft.init.Items.gold_ingot), 'X', new ItemStack(net.minecraft.init.Items.stick)});

			GameRegistry.addRecipe(new ItemStack(net.minecraft.init.Items.diamond_pickaxe), new Object[] {"aaa", " Z ", " X ", 'a', new ItemStack(net.minecraft.init.Items.diamond), 'X', new ItemStack(net.minecraft.init.Items.stick), 'Z', new ItemStack(Items.Stick, 1, woodDamage[d])});
			GameRegistry.addRecipe(new ItemStack(net.minecraft.init.Items.diamond_pickaxe), new Object[] {"aaa", " X ", " Z ", 'a', new ItemStack(net.minecraft.init.Items.diamond), 'X', new ItemStack(net.minecraft.init.Items.stick), 'Z', new ItemStack(Items.Stick, 1, woodDamage[d])});
			GameRegistry.addRecipe(new ItemStack(net.minecraft.init.Items.diamond_pickaxe), new Object[] {"aaa", " X ", " X ", 'a', new ItemStack(net.minecraft.init.Items.diamond), 'X', new ItemStack(net.minecraft.init.Items.stick)});

		// Axe //=======================================================================================================//

			if(!(a == b && a == c) || !(d == e))
			{
				GameRegistry.addRecipe(new ItemStack(net.minecraft.init.Items.wooden_axe), new Object[] {"ab", "cd", " e", 'a', new ItemStack(net.minecraft.init.Blocks.planks, 1, woodDamage[a]), 'b', new ItemStack(net.minecraft.init.Blocks.planks, 1, woodDamage[b]), 'c', new ItemStack(net.minecraft.init.Blocks.planks, 1, woodDamage[c]), 'd', new ItemStack(Items.Stick, 1, woodDamage[d]), 'e', new ItemStack(Items.Stick, 1, woodDamage[e])});
			}

			GameRegistry.addRecipe(new ItemStack(net.minecraft.init.Items.wooden_axe), new Object[] {"ab", "cZ", " X", 'a', new ItemStack(net.minecraft.init.Blocks.planks, 1, woodDamage[a]), 'b', new ItemStack(net.minecraft.init.Blocks.planks, 1, woodDamage[b]), 'c', new ItemStack(net.minecraft.init.Blocks.planks, 1, woodDamage[c]), 'X', new ItemStack(net.minecraft.init.Items.stick), 'Z', new ItemStack(Items.Stick, 1, woodDamage[d])});
			GameRegistry.addRecipe(new ItemStack(net.minecraft.init.Items.wooden_axe), new Object[] {"ab", "cX", " Z", 'a', new ItemStack(net.minecraft.init.Blocks.planks, 1, woodDamage[a]), 'b', new ItemStack(net.minecraft.init.Blocks.planks, 1, woodDamage[b]), 'c', new ItemStack(net.minecraft.init.Blocks.planks, 1, woodDamage[c]), 'X', new ItemStack(net.minecraft.init.Items.stick), 'Z', new ItemStack(Items.Stick, 1, woodDamage[d])});
			GameRegistry.addRecipe(new ItemStack(net.minecraft.init.Items.wooden_axe), new Object[] {"ab", "cX", " X", 'a', new ItemStack(net.minecraft.init.Blocks.planks, 1, woodDamage[a]), 'b', new ItemStack(net.minecraft.init.Blocks.planks, 1, woodDamage[b]), 'c', new ItemStack(net.minecraft.init.Blocks.planks, 1, woodDamage[c]), 'X', new ItemStack(net.minecraft.init.Items.stick)});

		// Door //=======================================================================================================//

			if(a == b && a == c && a == d && a == e && a == f)
			{
				GameRegistry.addRecipe(new ItemStack(Items.Door, 1, woodDamage[a]), new Object[] {"XX", "XX", "XX", 'X', new ItemStack(net.minecraft.init.Blocks.planks, 1, woodDamage[a])});
			}

			else
			{
				GameRegistry.addRecipe(new ItemStack(net.minecraft.init.Items.wooden_door, 1), new Object[] {"ab", "cd", "ef", 'a', new ItemStack(net.minecraft.init.Blocks.planks, 1, woodDamage[a]), 'b', new ItemStack(net.minecraft.init.Blocks.planks, 1, woodDamage[b]), 'c', new ItemStack(net.minecraft.init.Blocks.planks, 1, woodDamage[c]), 'd', new ItemStack(net.minecraft.init.Blocks.planks, 1, woodDamage[d]), 'e', new ItemStack(net.minecraft.init.Blocks.planks, 1, woodDamage[e]), 'f', new ItemStack(net.minecraft.init.Blocks.planks, 1, woodDamage[f])});
			}

		//=======================================================================================================//

			GameRegistry.addRecipe(new ItemStack(net.minecraft.init.Blocks.activator_rail, 6), new Object[] {"XSX", "X#X", "XSX", 'X', net.minecraft.init.Items.iron_ingot, '#', net.minecraft.init.Blocks.redstone_torch, 'S', new ItemStack(Items.Stick, 1, a)});
			GameRegistry.addRecipe(new ItemStack(net.minecraft.init.Items.fishing_rod, 1), new Object[] {"  #", " #X", "# X", '#', new ItemStack(Items.Stick, 1, a), 'X', net.minecraft.init.Items.string});
	}
	}
	}
	}
	}
	}
	}

	private static void bookshelf()
	{
        GameRegistry.addRecipe(new ItemStack(Blocks.OakBookshelf, 1), new Object[] {"PPP", "BBB", "PPP", 'P', new ItemStack(net.minecraft.init.Blocks.planks, 1, 0), 'B', net.minecraft.init.Items.book});
        GameRegistry.addRecipe(new ItemStack(Blocks.SpruceBookshelf, 1), new Object[] {"PPP", "BBB", "PPP", 'P', new ItemStack(net.minecraft.init.Blocks.planks, 1, 1), 'B', net.minecraft.init.Items.book});
        GameRegistry.addRecipe(new ItemStack(Blocks.BirchBookshelf, 1), new Object[] {"PPP", "BBB", "PPP", 'P', new ItemStack(net.minecraft.init.Blocks.planks, 1, 2), 'B', net.minecraft.init.Items.book});
        GameRegistry.addRecipe(new ItemStack(Blocks.JungleBookshelf, 1), new Object[] {"PPP", "BBB", "PPP", 'P', new ItemStack(net.minecraft.init.Blocks.planks, 1, 3), 'B', net.minecraft.init.Items.book});
        GameRegistry.addRecipe(new ItemStack(Blocks.AcaciaBookshelf, 1), new Object[] {"PPP", "BBB", "PPP", 'P', new ItemStack(net.minecraft.init.Blocks.planks, 1, 4), 'B', net.minecraft.init.Items.book});
        GameRegistry.addRecipe(new ItemStack(Blocks.DarkOakBookshelf, 1), new Object[] {"PPP", "BBB", "PPP", 'P', new ItemStack(net.minecraft.init.Blocks.planks, 1, 5), 'B', net.minecraft.init.Items.book});
	}

	private static void button()
	{
		GameRegistry.addRecipe(new ItemStack(Blocks.OakButton, 1), new Object[] {"W", 'W', new ItemStack(net.minecraft.init.Blocks.planks, 1, 0)});
		GameRegistry.addRecipe(new ItemStack(Blocks.SpruceButton, 1), new Object[] {"W", 'W', new ItemStack(net.minecraft.init.Blocks.planks, 1, 1)});
		GameRegistry.addRecipe(new ItemStack(Blocks.BirchButton, 1), new Object[] {"W", 'W', new ItemStack(net.minecraft.init.Blocks.planks, 1, 2)});
		GameRegistry.addRecipe(new ItemStack(Blocks.JungleButton, 1), new Object[] {"W", 'W', new ItemStack(net.minecraft.init.Blocks.planks, 1, 3)});
		GameRegistry.addRecipe(new ItemStack(Blocks.AcaciaButton, 1), new Object[] {"W", 'W', new ItemStack(net.minecraft.init.Blocks.planks, 1, 4)});
		GameRegistry.addRecipe(new ItemStack(Blocks.DarkOakButton, 1), new Object[] {"W", 'W', new ItemStack(net.minecraft.init.Blocks.planks, 1, 5)});
	}

	private static void fence()
	{
        GameRegistry.addRecipe(new ItemStack(Blocks.OakFence, 2), new Object[] {"###", "###", '#', new ItemStack(Items.Stick, 1, 0)});
        GameRegistry.addRecipe(new ItemStack(Blocks.SpruceFence, 2), new Object[] {"###", "###", '#', new ItemStack(Items.Stick, 1, 1)});
        GameRegistry.addRecipe(new ItemStack(Blocks.BirchFence, 2), new Object[] {"###", "###", '#', new ItemStack(Items.Stick, 1, 2)});
        GameRegistry.addRecipe(new ItemStack(Blocks.JungleFence, 2), new Object[] {"###", "###", '#', new ItemStack(Items.Stick, 1, 3)});
        GameRegistry.addRecipe(new ItemStack(Blocks.AcaciaFence, 2), new Object[] {"###", "###", '#', new ItemStack(Items.Stick, 1, 4)});
        GameRegistry.addRecipe(new ItemStack(Blocks.DarkOakFence, 2), new Object[] {"###", "###", '#', new ItemStack(Items.Stick, 1, 5)});
	}

	private static void fenceGate()
	{
        GameRegistry.addRecipe(new ItemStack(Blocks.OakFenceGate), new Object[] {"ZXZ", "ZXZ", 'Z', new ItemStack(Items.Stick, 1, 0), 'X', new ItemStack(net.minecraft.init.Blocks.planks, 1, 0)});
        GameRegistry.addRecipe(new ItemStack(Blocks.SpruceFenceGate), new Object[] {"ZXZ", "ZXZ", 'Z', new ItemStack(Items.Stick, 1, 1), 'X', new ItemStack(net.minecraft.init.Blocks.planks, 1, 1)});
        GameRegistry.addRecipe(new ItemStack(Blocks.BirchFenceGate), new Object[] {"ZXZ", "ZXZ", 'Z', new ItemStack(Items.Stick, 1, 2), 'X', new ItemStack(net.minecraft.init.Blocks.planks, 1, 2)});
        GameRegistry.addRecipe(new ItemStack(Blocks.JungleFenceGate), new Object[] {"ZXZ", "ZXZ", 'Z', new ItemStack(Items.Stick, 1, 3), 'X', new ItemStack(net.minecraft.init.Blocks.planks, 1, 3)});
        GameRegistry.addRecipe(new ItemStack(Blocks.AcaciaFenceGate), new Object[] {"ZXZ", "ZXZ", 'Z', new ItemStack(Items.Stick, 1, 4), 'X', new ItemStack(net.minecraft.init.Blocks.planks, 1, 4)});
        GameRegistry.addRecipe(new ItemStack(Blocks.DarkOakFenceGate), new Object[] {"ZXZ", "ZXZ", 'Z', new ItemStack(Items.Stick, 1, 5), 'X', new ItemStack(net.minecraft.init.Blocks.planks, 1, 5)});
	}

	private static void pressurePlate()
	{
		GameRegistry.addRecipe(new ItemStack(Blocks.OakPressurePlate), new Object[] {"WW", 'W', new ItemStack(net.minecraft.init.Blocks.planks, 1, 0)});
		GameRegistry.addRecipe(new ItemStack(Blocks.SprucePressurePlate), new Object[] {"WW", 'W', new ItemStack(net.minecraft.init.Blocks.planks, 1, 1)});
		GameRegistry.addRecipe(new ItemStack(Blocks.BirchPressurePlate), new Object[] {"WW", 'W', new ItemStack(net.minecraft.init.Blocks.planks, 1, 2)});
		GameRegistry.addRecipe(new ItemStack(Blocks.JunglePressurePlate), new Object[] {"WW", 'W', new ItemStack(net.minecraft.init.Blocks.planks, 1, 3)});
		GameRegistry.addRecipe(new ItemStack(Blocks.AcaciaPressurePlate), new Object[] {"WW", 'W', new ItemStack(net.minecraft.init.Blocks.planks, 1, 4)});
		GameRegistry.addRecipe(new ItemStack(Blocks.DarkOakPressurePlate), new Object[] {"WW", 'W', new ItemStack(net.minecraft.init.Blocks.planks, 1, 5)});
	}

	private static void lever()
	{
        GameRegistry.addRecipe(new ItemStack(Blocks.OakLever), new Object[] {"X", "#", 'X', new ItemStack(Items.Stick, 1, 0), '#', net.minecraft.init.Blocks.cobblestone});
        GameRegistry.addRecipe(new ItemStack(Blocks.SpruceLever), new Object[] {"X", "#", 'X', new ItemStack(Items.Stick, 1, 1), '#', net.minecraft.init.Blocks.cobblestone});
        GameRegistry.addRecipe(new ItemStack(Blocks.BirchLever), new Object[] {"X", "#", 'X', new ItemStack(Items.Stick, 1, 2), '#', net.minecraft.init.Blocks.cobblestone});
        GameRegistry.addRecipe(new ItemStack(Blocks.JungleLever), new Object[] {"X", "#", 'X', new ItemStack(Items.Stick, 1, 3), '#', net.minecraft.init.Blocks.cobblestone});
        GameRegistry.addRecipe(new ItemStack(Blocks.AcaciaLever), new Object[] {"X", "#", 'X', new ItemStack(Items.Stick, 1, 4), '#', net.minecraft.init.Blocks.cobblestone});
        GameRegistry.addRecipe(new ItemStack(Blocks.DarkOakLever), new Object[] {"X", "#", 'X', new ItemStack(Items.Stick, 1, 5), '#', net.minecraft.init.Blocks.cobblestone});
	}

	private static void torchOn()
	{
		for(int i = 0; i < 2; ++i)
		{
	        GameRegistry.addRecipe(new ItemStack(Blocks.OakTorchOn, 4), new Object[] {"C", "S", 'C', new ItemStack(net.minecraft.init.Items.coal, 1, i), 'S', new ItemStack(Items.Stick, 1, 0)});
	        GameRegistry.addRecipe(new ItemStack(Blocks.SpruceTorchOn, 4), new Object[] {"C", "S", 'C', new ItemStack(net.minecraft.init.Items.coal, 1, i), 'S', new ItemStack(Items.Stick, 1, 1)});
	        GameRegistry.addRecipe(new ItemStack(Blocks.BirchTorchOn, 4), new Object[] {"C", "S", 'C', new ItemStack(net.minecraft.init.Items.coal, 1, i), 'S', new ItemStack(Items.Stick, 1, 2)});
	        GameRegistry.addRecipe(new ItemStack(Blocks.JungleTorchOn, 4), new Object[] {"C", "S", 'C', new ItemStack(net.minecraft.init.Items.coal, 1, i), 'S', new ItemStack(Items.Stick, 1, 3)});
	        GameRegistry.addRecipe(new ItemStack(Blocks.AcaciaTorchOn, 4), new Object[] {"C", "S", 'C', new ItemStack(net.minecraft.init.Items.coal, 1, i), 'S', new ItemStack(Items.Stick, 1, 4)});
	        GameRegistry.addRecipe(new ItemStack(Blocks.DarkOakTorchOn, 4), new Object[] {"C", "S", 'C', new ItemStack(net.minecraft.init.Items.coal, 1, i), 'S', new ItemStack(Items.Stick, 1, 5)});
		}
	}

	private static void ladder()
	{
        GameRegistry.addRecipe(new ItemStack(Blocks.OakLadder, 3), new Object[] {"X X", "XXX", "X X", 'X', new ItemStack(Items.Stick, 1, 0)});
        GameRegistry.addRecipe(new ItemStack(Blocks.SpruceLadder, 3), new Object[] {"X X", "XXX", "X X", 'X', new ItemStack(Items.Stick, 1, 1)});
        GameRegistry.addRecipe(new ItemStack(Blocks.BirchLadder, 3), new Object[] {"X X", "XXX", "X X", 'X', new ItemStack(Items.Stick, 1, 2)});
        GameRegistry.addRecipe(new ItemStack(Blocks.JungleLadder, 3), new Object[] {"X X", "XXX", "X X", 'X', new ItemStack(Items.Stick, 1, 3)});
        GameRegistry.addRecipe(new ItemStack(Blocks.AcaciaLadder, 3), new Object[] {"X X", "XXX", "X X", 'X', new ItemStack(Items.Stick, 1, 4)});
        GameRegistry.addRecipe(new ItemStack(Blocks.DarkOakLadder, 3), new Object[] {"X X", "XXX", "X X", 'X', new ItemStack(Items.Stick, 1, 5)});
	}

	private static void sword()
	{
		GameRegistry.addRecipe(new ItemStack(Items.OakOakSword), new Object[] {"X", "X", "Y", 'X', new ItemStack(net.minecraft.init.Blocks.planks, 1, 0), 'Y', new ItemStack(Items.Stick, 1, 0)});
		GameRegistry.addRecipe(new ItemStack(Items.OakSpruceSword), new Object[] {"X", "X", "Y", 'X', new ItemStack(net.minecraft.init.Blocks.planks, 1, 0), 'Y', new ItemStack(Items.Stick, 1, 1)});
		GameRegistry.addRecipe(new ItemStack(Items.OakBirchSword), new Object[] {"X", "X", "Y", 'X', new ItemStack(net.minecraft.init.Blocks.planks, 1, 0), 'Y', new ItemStack(Items.Stick, 1, 2)});
		GameRegistry.addRecipe(new ItemStack(Items.OakJungleSword), new Object[] {"X", "X", "Y", 'X', new ItemStack(net.minecraft.init.Blocks.planks, 1, 0), 'Y', new ItemStack(Items.Stick, 1, 3)});
		GameRegistry.addRecipe(new ItemStack(Items.OakAcaciaSword), new Object[] {"X", "X", "Y", 'X', new ItemStack(net.minecraft.init.Blocks.planks, 1, 0), 'Y', new ItemStack(Items.Stick, 1, 4)});
		GameRegistry.addRecipe(new ItemStack(Items.OakDarkOakSword), new Object[] {"X", "X", "Y", 'X', new ItemStack(net.minecraft.init.Blocks.planks, 1, 0), 'Y', new ItemStack(Items.Stick, 1, 5)});

		GameRegistry.addRecipe(new ItemStack(Items.SpruceOakSword), new Object[] {"X", "X", "Y", 'X', new ItemStack(net.minecraft.init.Blocks.planks, 1, 1), 'Y', new ItemStack(Items.Stick, 1, 0)});
		GameRegistry.addRecipe(new ItemStack(Items.SpruceSpruceSword), new Object[] {"X", "X", "Y", 'X', new ItemStack(net.minecraft.init.Blocks.planks, 1, 1), 'Y', new ItemStack(Items.Stick, 1, 1)});
		GameRegistry.addRecipe(new ItemStack(Items.SpruceBirchSword), new Object[] {"X", "X", "Y", 'X', new ItemStack(net.minecraft.init.Blocks.planks, 1, 1), 'Y', new ItemStack(Items.Stick, 1, 2)});
		GameRegistry.addRecipe(new ItemStack(Items.SpruceJungleSword), new Object[] {"X", "X", "Y", 'X', new ItemStack(net.minecraft.init.Blocks.planks, 1, 1), 'Y', new ItemStack(Items.Stick, 1, 3)});
		GameRegistry.addRecipe(new ItemStack(Items.SpruceAcaciaSword), new Object[] {"X", "X", "Y", 'X', new ItemStack(net.minecraft.init.Blocks.planks, 1, 1), 'Y', new ItemStack(Items.Stick, 1, 4)});
		GameRegistry.addRecipe(new ItemStack(Items.SpruceDarkOakSword), new Object[] {"X", "X", "Y", 'X', new ItemStack(net.minecraft.init.Blocks.planks, 1, 1), 'Y', new ItemStack(Items.Stick, 1, 5)});

		GameRegistry.addRecipe(new ItemStack(Items.BirchOakSword), new Object[] {"X", "X", "Y", 'X', new ItemStack(net.minecraft.init.Blocks.planks, 1, 2), 'Y', new ItemStack(Items.Stick, 1, 0)});
		GameRegistry.addRecipe(new ItemStack(Items.BirchSpruceSword), new Object[] {"X", "X", "Y", 'X', new ItemStack(net.minecraft.init.Blocks.planks, 1, 2), 'Y', new ItemStack(Items.Stick, 1, 1)});
		GameRegistry.addRecipe(new ItemStack(Items.BirchBirchSword), new Object[] {"X", "X", "Y", 'X', new ItemStack(net.minecraft.init.Blocks.planks, 1, 2), 'Y', new ItemStack(Items.Stick, 1, 2)});
		GameRegistry.addRecipe(new ItemStack(Items.BirchJungleSword), new Object[] {"X", "X", "Y", 'X', new ItemStack(net.minecraft.init.Blocks.planks, 1, 2), 'Y', new ItemStack(Items.Stick, 1, 3)});
		GameRegistry.addRecipe(new ItemStack(Items.BirchAcaciaSword), new Object[] {"X", "X", "Y", 'X', new ItemStack(net.minecraft.init.Blocks.planks, 1, 2), 'Y', new ItemStack(Items.Stick, 1, 4)});
		GameRegistry.addRecipe(new ItemStack(Items.BirchDarkOakSword), new Object[] {"X", "X", "Y", 'X', new ItemStack(net.minecraft.init.Blocks.planks, 1, 2), 'Y', new ItemStack(Items.Stick, 1, 5)});

		GameRegistry.addRecipe(new ItemStack(Items.JungleOakSword), new Object[] {"X", "X", "Y", 'X', new ItemStack(net.minecraft.init.Blocks.planks, 1, 3), 'Y', new ItemStack(Items.Stick, 1, 0)});
		GameRegistry.addRecipe(new ItemStack(Items.JungleSpruceSword), new Object[] {"X", "X", "Y", 'X', new ItemStack(net.minecraft.init.Blocks.planks, 1, 3), 'Y', new ItemStack(Items.Stick, 1, 1)});
		GameRegistry.addRecipe(new ItemStack(Items.JungleBirchSword), new Object[] {"X", "X", "Y", 'X', new ItemStack(net.minecraft.init.Blocks.planks, 1, 3), 'Y', new ItemStack(Items.Stick, 1, 2)});
		GameRegistry.addRecipe(new ItemStack(Items.JungleJungleSword), new Object[] {"X", "X", "Y", 'X', new ItemStack(net.minecraft.init.Blocks.planks, 1, 3), 'Y', new ItemStack(Items.Stick, 1, 3)});
		GameRegistry.addRecipe(new ItemStack(Items.JungleAcaciaSword), new Object[] {"X", "X", "Y", 'X', new ItemStack(net.minecraft.init.Blocks.planks, 1, 3), 'Y', new ItemStack(Items.Stick, 1, 4)});
		GameRegistry.addRecipe(new ItemStack(Items.JungleDarkOakSword), new Object[] {"X", "X", "Y", 'X', new ItemStack(net.minecraft.init.Blocks.planks, 1, 3), 'Y', new ItemStack(Items.Stick, 1, 5)});

		GameRegistry.addRecipe(new ItemStack(Items.AcaciaOakSword), new Object[] {"X", "X", "Y", 'X', new ItemStack(net.minecraft.init.Blocks.planks, 1, 4), 'Y', new ItemStack(Items.Stick, 1, 0)});
		GameRegistry.addRecipe(new ItemStack(Items.AcaciaSpruceSword), new Object[] {"X", "X", "Y", 'X', new ItemStack(net.minecraft.init.Blocks.planks, 1, 4), 'Y', new ItemStack(Items.Stick, 1, 1)});
		GameRegistry.addRecipe(new ItemStack(Items.AcaciaBirchSword), new Object[] {"X", "X", "Y", 'X', new ItemStack(net.minecraft.init.Blocks.planks, 1, 4), 'Y', new ItemStack(Items.Stick, 1, 2)});
		GameRegistry.addRecipe(new ItemStack(Items.AcaciaJungleSword), new Object[] {"X", "X", "Y", 'X', new ItemStack(net.minecraft.init.Blocks.planks, 1, 4), 'Y', new ItemStack(Items.Stick, 1, 3)});
		GameRegistry.addRecipe(new ItemStack(Items.AcaciaAcaciaSword), new Object[] {"X", "X", "Y", 'X', new ItemStack(net.minecraft.init.Blocks.planks, 1, 4), 'Y', new ItemStack(Items.Stick, 1, 4)});
		GameRegistry.addRecipe(new ItemStack(Items.AcaciaDarkOakSword), new Object[] {"X", "X", "Y", 'X', new ItemStack(net.minecraft.init.Blocks.planks, 1, 4), 'Y', new ItemStack(Items.Stick, 1, 5)});


		GameRegistry.addRecipe(new ItemStack(Items.DarkOakOakSword), new Object[] {"X", "X", "Y", 'X', new ItemStack(net.minecraft.init.Blocks.planks, 1, 5), 'Y', new ItemStack(Items.Stick, 1, 0)});
		GameRegistry.addRecipe(new ItemStack(Items.DarkOakSpruceSword), new Object[] {"X", "X", "Y", 'X', new ItemStack(net.minecraft.init.Blocks.planks, 1, 5), 'Y', new ItemStack(Items.Stick, 1, 1)});
		GameRegistry.addRecipe(new ItemStack(Items.DarkOakBirchSword), new Object[] {"X", "X", "Y", 'X', new ItemStack(net.minecraft.init.Blocks.planks, 1, 5), 'Y', new ItemStack(Items.Stick, 1, 2)});
		GameRegistry.addRecipe(new ItemStack(Items.DarkOakJungleSword), new Object[] {"X", "X", "Y", 'X', new ItemStack(net.minecraft.init.Blocks.planks, 1, 5), 'Y', new ItemStack(Items.Stick, 1, 3)});
		GameRegistry.addRecipe(new ItemStack(Items.DarkOakAcaciaSword), new Object[] {"X", "X", "Y", 'X', new ItemStack(net.minecraft.init.Blocks.planks, 1, 5), 'Y', new ItemStack(Items.Stick, 1, 4)});
		GameRegistry.addRecipe(new ItemStack(Items.DarkOakDarkOakSword), new Object[] {"X", "X", "Y", 'X', new ItemStack(net.minecraft.init.Blocks.planks, 1, 5), 'Y', new ItemStack(Items.Stick, 1, 5)});


		GameRegistry.addRecipe(new ItemStack(Items.StoneOakSword), new Object[] {"X", "X", "Y", 'X', new ItemStack(net.minecraft.init.Blocks.cobblestone), 'Y', new ItemStack(Items.Stick, 1, 0)});
		GameRegistry.addRecipe(new ItemStack(Items.StoneSpruceSword), new Object[] {"X", "X", "Y", 'X', new ItemStack(net.minecraft.init.Blocks.cobblestone), 'Y', new ItemStack(Items.Stick, 1, 1)});
		GameRegistry.addRecipe(new ItemStack(Items.StoneBirchSword), new Object[] {"X", "X", "Y", 'X', new ItemStack(net.minecraft.init.Blocks.cobblestone), 'Y', new ItemStack(Items.Stick, 1, 2)});
		GameRegistry.addRecipe(new ItemStack(Items.StoneJungleSword), new Object[] {"X", "X", "Y", 'X', new ItemStack(net.minecraft.init.Blocks.cobblestone), 'Y', new ItemStack(Items.Stick, 1, 3)});
		GameRegistry.addRecipe(new ItemStack(Items.StoneAcaciaSword), new Object[] {"X", "X", "Y", 'X', new ItemStack(net.minecraft.init.Blocks.cobblestone), 'Y', new ItemStack(Items.Stick, 1, 4)});
		GameRegistry.addRecipe(new ItemStack(Items.StoneDarkOakSword), new Object[] {"X", "X", "Y", 'X', new ItemStack(net.minecraft.init.Blocks.cobblestone), 'Y', new ItemStack(Items.Stick, 1, 5)});

		GameRegistry.addRecipe(new ItemStack(Items.IronOakSword), new Object[] {"X", "X", "Y", 'X', new ItemStack(net.minecraft.init.Items.iron_ingot), 'Y', new ItemStack(Items.Stick, 1, 0)});
		GameRegistry.addRecipe(new ItemStack(Items.IronSpruceSword), new Object[] {"X", "X", "Y", 'X', new ItemStack(net.minecraft.init.Items.iron_ingot), 'Y', new ItemStack(Items.Stick, 1, 1)});
		GameRegistry.addRecipe(new ItemStack(Items.IronBirchSword), new Object[] {"X", "X", "Y", 'X', new ItemStack(net.minecraft.init.Items.iron_ingot), 'Y', new ItemStack(Items.Stick, 1, 2)});
		GameRegistry.addRecipe(new ItemStack(Items.IronJungleSword), new Object[] {"X", "X", "Y", 'X', new ItemStack(net.minecraft.init.Items.iron_ingot), 'Y', new ItemStack(Items.Stick, 1, 3)});
		GameRegistry.addRecipe(new ItemStack(Items.IronAcaciaSword), new Object[] {"X", "X", "Y", 'X', new ItemStack(net.minecraft.init.Items.iron_ingot), 'Y', new ItemStack(Items.Stick, 1, 4)});
		GameRegistry.addRecipe(new ItemStack(Items.IronDarkOakSword), new Object[] {"X", "X", "Y", 'X', new ItemStack(net.minecraft.init.Items.iron_ingot), 'Y', new ItemStack(Items.Stick, 1, 5)});

		GameRegistry.addRecipe(new ItemStack(Items.GoldOakSword), new Object[] {"X", "X", "Y", 'X', new ItemStack(net.minecraft.init.Items.gold_ingot), 'Y', new ItemStack(Items.Stick, 1, 0)});
		GameRegistry.addRecipe(new ItemStack(Items.GoldSpruceSword), new Object[] {"X", "X", "Y", 'X', new ItemStack(net.minecraft.init.Items.gold_ingot), 'Y', new ItemStack(Items.Stick, 1, 1)});
		GameRegistry.addRecipe(new ItemStack(Items.GoldBirchSword), new Object[] {"X", "X", "Y", 'X', new ItemStack(net.minecraft.init.Items.gold_ingot), 'Y', new ItemStack(Items.Stick, 1, 2)});
		GameRegistry.addRecipe(new ItemStack(Items.GoldJungleSword), new Object[] {"X", "X", "Y", 'X', new ItemStack(net.minecraft.init.Items.gold_ingot), 'Y', new ItemStack(Items.Stick, 1, 3)});
		GameRegistry.addRecipe(new ItemStack(Items.GoldAcaciaSword), new Object[] {"X", "X", "Y", 'X', new ItemStack(net.minecraft.init.Items.gold_ingot), 'Y', new ItemStack(Items.Stick, 1, 4)});
		GameRegistry.addRecipe(new ItemStack(Items.GoldDarkOakSword), new Object[] {"X", "X", "Y", 'X', new ItemStack(net.minecraft.init.Items.gold_ingot), 'Y', new ItemStack(Items.Stick, 1, 5)});

		GameRegistry.addRecipe(new ItemStack(Items.DiamondOakSword), new Object[] {"X", "X", "Y", 'X', new ItemStack(net.minecraft.init.Items.diamond), 'Y', new ItemStack(Items.Stick, 1, 0)});
		GameRegistry.addRecipe(new ItemStack(Items.DiamondSpruceSword), new Object[] {"X", "X", "Y", 'X', new ItemStack(net.minecraft.init.Items.diamond), 'Y', new ItemStack(Items.Stick, 1, 1)});
		GameRegistry.addRecipe(new ItemStack(Items.DiamondBirchSword), new Object[] {"X", "X", "Y", 'X', new ItemStack(net.minecraft.init.Items.diamond), 'Y', new ItemStack(Items.Stick, 1, 2)});
		GameRegistry.addRecipe(new ItemStack(Items.DiamondJungleSword), new Object[] {"X", "X", "Y", 'X', new ItemStack(net.minecraft.init.Items.diamond), 'Y', new ItemStack(Items.Stick, 1, 3)});
		GameRegistry.addRecipe(new ItemStack(Items.DiamondAcaciaSword), new Object[] {"X", "X", "Y", 'X', new ItemStack(net.minecraft.init.Items.diamond), 'Y', new ItemStack(Items.Stick, 1, 4)});
		GameRegistry.addRecipe(new ItemStack(Items.DiamondDarkOakSword), new Object[] {"X", "X", "Y", 'X', new ItemStack(net.minecraft.init.Items.diamond), 'Y', new ItemStack(Items.Stick, 1, 5)});
	}

	private static void shovel()
	{
		GameRegistry.addRecipe(new ItemStack(Items.OakOakShovel), new Object[] {"X", "Y", "Y", 'X', new ItemStack(net.minecraft.init.Blocks.planks, 1, 0), 'Y', new ItemStack(Items.Stick, 1, 0)});
		GameRegistry.addRecipe(new ItemStack(Items.OakSpruceShovel), new Object[] {"X", "Y", "Y", 'X', new ItemStack(net.minecraft.init.Blocks.planks, 1, 0), 'Y', new ItemStack(Items.Stick, 1, 1)});
		GameRegistry.addRecipe(new ItemStack(Items.OakBirchShovel), new Object[] {"X", "Y", "Y", 'X', new ItemStack(net.minecraft.init.Blocks.planks, 1, 0), 'Y', new ItemStack(Items.Stick, 1, 2)});
		GameRegistry.addRecipe(new ItemStack(Items.OakJungleShovel), new Object[] {"X", "Y", "Y", 'X', new ItemStack(net.minecraft.init.Blocks.planks, 1, 0), 'Y', new ItemStack(Items.Stick, 1, 3)});
		GameRegistry.addRecipe(new ItemStack(Items.OakAcaciaShovel), new Object[] {"X", "Y", "Y", 'X', new ItemStack(net.minecraft.init.Blocks.planks, 1, 0), 'Y', new ItemStack(Items.Stick, 1, 4)});
		GameRegistry.addRecipe(new ItemStack(Items.OakDarkOakShovel), new Object[] {"X", "Y", "Y", 'X', new ItemStack(net.minecraft.init.Blocks.planks, 1, 0), 'Y', new ItemStack(Items.Stick, 1, 5)});

		GameRegistry.addRecipe(new ItemStack(Items.SpruceOakShovel), new Object[] {"X", "Y", "Y", 'X', new ItemStack(net.minecraft.init.Blocks.planks, 1, 1), 'Y', new ItemStack(Items.Stick, 1, 0)});
		GameRegistry.addRecipe(new ItemStack(Items.SpruceSpruceShovel), new Object[] {"X", "Y", "Y", 'X', new ItemStack(net.minecraft.init.Blocks.planks, 1, 1), 'Y', new ItemStack(Items.Stick, 1, 1)});
		GameRegistry.addRecipe(new ItemStack(Items.SpruceBirchShovel), new Object[] {"X", "Y", "Y", 'X', new ItemStack(net.minecraft.init.Blocks.planks, 1, 1), 'Y', new ItemStack(Items.Stick, 1, 2)});
		GameRegistry.addRecipe(new ItemStack(Items.SpruceJungleShovel), new Object[] {"X", "Y", "Y", 'X', new ItemStack(net.minecraft.init.Blocks.planks, 1, 1), 'Y', new ItemStack(Items.Stick, 1, 3)});
		GameRegistry.addRecipe(new ItemStack(Items.SpruceAcaciaShovel), new Object[] {"X", "Y", "Y", 'X', new ItemStack(net.minecraft.init.Blocks.planks, 1, 1), 'Y', new ItemStack(Items.Stick, 1, 4)});
		GameRegistry.addRecipe(new ItemStack(Items.SpruceDarkOakShovel), new Object[] {"X", "Y", "Y", 'X', new ItemStack(net.minecraft.init.Blocks.planks, 1, 1), 'Y', new ItemStack(Items.Stick, 1, 5)});

		GameRegistry.addRecipe(new ItemStack(Items.BirchOakShovel), new Object[] {"X", "Y", "Y", 'X', new ItemStack(net.minecraft.init.Blocks.planks, 1, 2), 'Y', new ItemStack(Items.Stick, 1, 0)});
		GameRegistry.addRecipe(new ItemStack(Items.BirchSpruceShovel), new Object[] {"X", "Y", "Y", 'X', new ItemStack(net.minecraft.init.Blocks.planks, 1, 2), 'Y', new ItemStack(Items.Stick, 1, 1)});
		GameRegistry.addRecipe(new ItemStack(Items.BirchBirchShovel), new Object[] {"X", "Y", "Y", 'X', new ItemStack(net.minecraft.init.Blocks.planks, 1, 2), 'Y', new ItemStack(Items.Stick, 1, 2)});
		GameRegistry.addRecipe(new ItemStack(Items.BirchJungleShovel), new Object[] {"X", "Y", "Y", 'X', new ItemStack(net.minecraft.init.Blocks.planks, 1, 2), 'Y', new ItemStack(Items.Stick, 1, 3)});
		GameRegistry.addRecipe(new ItemStack(Items.BirchAcaciaShovel), new Object[] {"X", "Y", "Y", 'X', new ItemStack(net.minecraft.init.Blocks.planks, 1, 2), 'Y', new ItemStack(Items.Stick, 1, 4)});
		GameRegistry.addRecipe(new ItemStack(Items.BirchDarkOakShovel), new Object[] {"X", "Y", "Y", 'X', new ItemStack(net.minecraft.init.Blocks.planks, 1, 2), 'Y', new ItemStack(Items.Stick, 1, 5)});

		GameRegistry.addRecipe(new ItemStack(Items.JungleOakShovel), new Object[] {"X", "Y", "Y", 'X', new ItemStack(net.minecraft.init.Blocks.planks, 1, 3), 'Y', new ItemStack(Items.Stick, 1, 0)});
		GameRegistry.addRecipe(new ItemStack(Items.JungleSpruceShovel), new Object[] {"X", "Y", "Y", 'X', new ItemStack(net.minecraft.init.Blocks.planks, 1, 3), 'Y', new ItemStack(Items.Stick, 1, 1)});
		GameRegistry.addRecipe(new ItemStack(Items.JungleBirchShovel), new Object[] {"X", "Y", "Y", 'X', new ItemStack(net.minecraft.init.Blocks.planks, 1, 3), 'Y', new ItemStack(Items.Stick, 1, 2)});
		GameRegistry.addRecipe(new ItemStack(Items.JungleJungleShovel), new Object[] {"X", "Y", "Y", 'X', new ItemStack(net.minecraft.init.Blocks.planks, 1, 3), 'Y', new ItemStack(Items.Stick, 1, 3)});
		GameRegistry.addRecipe(new ItemStack(Items.JungleAcaciaShovel), new Object[] {"X", "Y", "Y", 'X', new ItemStack(net.minecraft.init.Blocks.planks, 1, 3), 'Y', new ItemStack(Items.Stick, 1, 4)});
		GameRegistry.addRecipe(new ItemStack(Items.JungleDarkOakShovel), new Object[] {"X", "Y", "Y", 'X', new ItemStack(net.minecraft.init.Blocks.planks, 1, 3), 'Y', new ItemStack(Items.Stick, 1, 5)});

		GameRegistry.addRecipe(new ItemStack(Items.AcaciaOakShovel), new Object[] {"X", "Y", "Y", 'X', new ItemStack(net.minecraft.init.Blocks.planks, 1, 4), 'Y', new ItemStack(Items.Stick, 1, 0)});
		GameRegistry.addRecipe(new ItemStack(Items.AcaciaSpruceShovel), new Object[] {"X", "Y", "Y", 'X', new ItemStack(net.minecraft.init.Blocks.planks, 1, 4), 'Y', new ItemStack(Items.Stick, 1, 1)});
		GameRegistry.addRecipe(new ItemStack(Items.AcaciaBirchShovel), new Object[] {"X", "Y", "Y", 'X', new ItemStack(net.minecraft.init.Blocks.planks, 1, 4), 'Y', new ItemStack(Items.Stick, 1, 2)});
		GameRegistry.addRecipe(new ItemStack(Items.AcaciaJungleShovel), new Object[] {"X", "Y", "Y", 'X', new ItemStack(net.minecraft.init.Blocks.planks, 1, 4), 'Y', new ItemStack(Items.Stick, 1, 3)});
		GameRegistry.addRecipe(new ItemStack(Items.AcaciaAcaciaShovel), new Object[] {"X", "Y", "Y", 'X', new ItemStack(net.minecraft.init.Blocks.planks, 1, 4), 'Y', new ItemStack(Items.Stick, 1, 4)});
		GameRegistry.addRecipe(new ItemStack(Items.AcaciaDarkOakShovel), new Object[] {"X", "Y", "Y", 'X', new ItemStack(net.minecraft.init.Blocks.planks, 1, 4), 'Y', new ItemStack(Items.Stick, 1, 5)});


		GameRegistry.addRecipe(new ItemStack(Items.DarkOakOakShovel), new Object[] {"X", "Y", "Y", 'X', new ItemStack(net.minecraft.init.Blocks.planks, 1, 5), 'Y', new ItemStack(Items.Stick, 1, 0)});
		GameRegistry.addRecipe(new ItemStack(Items.DarkOakSpruceShovel), new Object[] {"X", "Y", "Y", 'X', new ItemStack(net.minecraft.init.Blocks.planks, 1, 5), 'Y', new ItemStack(Items.Stick, 1, 1)});
		GameRegistry.addRecipe(new ItemStack(Items.DarkOakBirchShovel), new Object[] {"X", "Y", "Y", 'X', new ItemStack(net.minecraft.init.Blocks.planks, 1, 5), 'Y', new ItemStack(Items.Stick, 1, 2)});
		GameRegistry.addRecipe(new ItemStack(Items.DarkOakJungleShovel), new Object[] {"X", "Y", "Y", 'X', new ItemStack(net.minecraft.init.Blocks.planks, 1, 5), 'Y', new ItemStack(Items.Stick, 1, 3)});
		GameRegistry.addRecipe(new ItemStack(Items.DarkOakAcaciaShovel), new Object[] {"X", "Y", "Y", 'X', new ItemStack(net.minecraft.init.Blocks.planks, 1, 5), 'Y', new ItemStack(Items.Stick, 1, 4)});
		GameRegistry.addRecipe(new ItemStack(Items.DarkOakDarkOakShovel), new Object[] {"X", "Y", "Y", 'X', new ItemStack(net.minecraft.init.Blocks.planks, 1, 5), 'Y', new ItemStack(Items.Stick, 1, 5)});


		GameRegistry.addRecipe(new ItemStack(Items.StoneOakShovel), new Object[] {"X", "Y", "Y", 'X', new ItemStack(net.minecraft.init.Blocks.cobblestone), 'Y', new ItemStack(Items.Stick, 1, 0)});
		GameRegistry.addRecipe(new ItemStack(Items.StoneSpruceShovel), new Object[] {"X", "Y", "Y", 'X', new ItemStack(net.minecraft.init.Blocks.cobblestone), 'Y', new ItemStack(Items.Stick, 1, 1)});
		GameRegistry.addRecipe(new ItemStack(Items.StoneBirchShovel), new Object[] {"X", "Y", "Y", 'X', new ItemStack(net.minecraft.init.Blocks.cobblestone), 'Y', new ItemStack(Items.Stick, 1, 2)});
		GameRegistry.addRecipe(new ItemStack(Items.StoneJungleShovel), new Object[] {"X", "Y", "Y", 'X', new ItemStack(net.minecraft.init.Blocks.cobblestone), 'Y', new ItemStack(Items.Stick, 1, 3)});
		GameRegistry.addRecipe(new ItemStack(Items.StoneAcaciaShovel), new Object[] {"X", "Y", "Y", 'X', new ItemStack(net.minecraft.init.Blocks.cobblestone), 'Y', new ItemStack(Items.Stick, 1, 4)});
		GameRegistry.addRecipe(new ItemStack(Items.StoneDarkOakShovel), new Object[] {"X", "Y", "Y", 'X', new ItemStack(net.minecraft.init.Blocks.cobblestone), 'Y', new ItemStack(Items.Stick, 1, 5)});

		GameRegistry.addRecipe(new ItemStack(Items.IronOakShovel), new Object[] {"X", "Y", "Y", 'X', new ItemStack(net.minecraft.init.Items.iron_ingot), 'Y', new ItemStack(Items.Stick, 1, 0)});
		GameRegistry.addRecipe(new ItemStack(Items.IronSpruceShovel), new Object[] {"X", "Y", "Y", 'X', new ItemStack(net.minecraft.init.Items.iron_ingot), 'Y', new ItemStack(Items.Stick, 1, 1)});
		GameRegistry.addRecipe(new ItemStack(Items.IronBirchShovel), new Object[] {"X", "Y", "Y", 'X', new ItemStack(net.minecraft.init.Items.iron_ingot), 'Y', new ItemStack(Items.Stick, 1, 2)});
		GameRegistry.addRecipe(new ItemStack(Items.IronJungleShovel), new Object[] {"X", "Y", "Y", 'X', new ItemStack(net.minecraft.init.Items.iron_ingot), 'Y', new ItemStack(Items.Stick, 1, 3)});
		GameRegistry.addRecipe(new ItemStack(Items.IronAcaciaShovel), new Object[] {"X", "Y", "Y", 'X', new ItemStack(net.minecraft.init.Items.iron_ingot), 'Y', new ItemStack(Items.Stick, 1, 4)});
		GameRegistry.addRecipe(new ItemStack(Items.IronDarkOakShovel), new Object[] {"X", "Y", "Y", 'X', new ItemStack(net.minecraft.init.Items.iron_ingot), 'Y', new ItemStack(Items.Stick, 1, 5)});

		GameRegistry.addRecipe(new ItemStack(Items.GoldOakShovel), new Object[] {"X", "Y", "Y", 'X', new ItemStack(net.minecraft.init.Items.gold_ingot), 'Y', new ItemStack(Items.Stick, 1, 0)});
		GameRegistry.addRecipe(new ItemStack(Items.GoldSpruceShovel), new Object[] {"X", "Y", "Y", 'X', new ItemStack(net.minecraft.init.Items.gold_ingot), 'Y', new ItemStack(Items.Stick, 1, 1)});
		GameRegistry.addRecipe(new ItemStack(Items.GoldBirchShovel), new Object[] {"X", "Y", "Y", 'X', new ItemStack(net.minecraft.init.Items.gold_ingot), 'Y', new ItemStack(Items.Stick, 1, 2)});
		GameRegistry.addRecipe(new ItemStack(Items.GoldJungleShovel), new Object[] {"X", "Y", "Y", 'X', new ItemStack(net.minecraft.init.Items.gold_ingot), 'Y', new ItemStack(Items.Stick, 1, 3)});
		GameRegistry.addRecipe(new ItemStack(Items.GoldAcaciaShovel), new Object[] {"X", "Y", "Y", 'X', new ItemStack(net.minecraft.init.Items.gold_ingot), 'Y', new ItemStack(Items.Stick, 1, 4)});
		GameRegistry.addRecipe(new ItemStack(Items.GoldDarkOakShovel), new Object[] {"X", "Y", "Y", 'X', new ItemStack(net.minecraft.init.Items.gold_ingot), 'Y', new ItemStack(Items.Stick, 1, 5)});

		GameRegistry.addRecipe(new ItemStack(Items.DiamondOakShovel), new Object[] {"X", "Y", "Y", 'X', new ItemStack(net.minecraft.init.Items.diamond), 'Y', new ItemStack(Items.Stick, 1, 0)});
		GameRegistry.addRecipe(new ItemStack(Items.DiamondSpruceShovel), new Object[] {"X", "Y", "Y", 'X', new ItemStack(net.minecraft.init.Items.diamond), 'Y', new ItemStack(Items.Stick, 1, 1)});
		GameRegistry.addRecipe(new ItemStack(Items.DiamondBirchShovel), new Object[] {"X", "Y", "Y", 'X', new ItemStack(net.minecraft.init.Items.diamond), 'Y', new ItemStack(Items.Stick, 1, 2)});
		GameRegistry.addRecipe(new ItemStack(Items.DiamondJungleShovel), new Object[] {"X", "Y", "Y", 'X', new ItemStack(net.minecraft.init.Items.diamond), 'Y', new ItemStack(Items.Stick, 1, 3)});
		GameRegistry.addRecipe(new ItemStack(Items.DiamondAcaciaShovel), new Object[] {"X", "Y", "Y", 'X', new ItemStack(net.minecraft.init.Items.diamond), 'Y', new ItemStack(Items.Stick, 1, 4)});
		GameRegistry.addRecipe(new ItemStack(Items.DiamondDarkOakShovel), new Object[] {"X", "Y", "Y", 'X', new ItemStack(net.minecraft.init.Items.diamond), 'Y', new ItemStack(Items.Stick, 1, 5)});
	}

	private static void pickaxe()
	{
		GameRegistry.addRecipe(new ItemStack(Items.OakOakPickaxe), new Object[] {"XXX", " Y ", " Y ", 'X', new ItemStack(net.minecraft.init.Blocks.planks, 1, 0), 'Y', new ItemStack(Items.Stick, 1, 0)});
		GameRegistry.addRecipe(new ItemStack(Items.OakSprucePickaxe), new Object[] {"XXX", " Y ", " Y ", 'X', new ItemStack(net.minecraft.init.Blocks.planks, 1, 0), 'Y', new ItemStack(Items.Stick, 1, 1)});
		GameRegistry.addRecipe(new ItemStack(Items.OakBirchPickaxe), new Object[] {"XXX", " Y ", " Y ", 'X', new ItemStack(net.minecraft.init.Blocks.planks, 1, 0), 'Y', new ItemStack(Items.Stick, 1, 2)});
		GameRegistry.addRecipe(new ItemStack(Items.OakJunglePickaxe), new Object[] {"XXX", " Y ", " Y ", 'X', new ItemStack(net.minecraft.init.Blocks.planks, 1, 0), 'Y', new ItemStack(Items.Stick, 1, 3)});
		GameRegistry.addRecipe(new ItemStack(Items.OakAcaciaPickaxe), new Object[] {"XXX", " Y ", " Y ", 'X', new ItemStack(net.minecraft.init.Blocks.planks, 1, 0), 'Y', new ItemStack(Items.Stick, 1, 4)});
		GameRegistry.addRecipe(new ItemStack(Items.OakDarkOakPickaxe), new Object[] {"XXX", " Y ", " Y ", 'X', new ItemStack(net.minecraft.init.Blocks.planks, 1, 0), 'Y', new ItemStack(Items.Stick, 1, 5)});

		GameRegistry.addRecipe(new ItemStack(Items.SpruceOakPickaxe), new Object[] {"XXX", " Y ", " Y ", 'X', new ItemStack(net.minecraft.init.Blocks.planks, 1, 1), 'Y', new ItemStack(Items.Stick, 1, 0)});
		GameRegistry.addRecipe(new ItemStack(Items.SpruceSprucePickaxe), new Object[] {"XXX", " Y ", " Y ", 'X', new ItemStack(net.minecraft.init.Blocks.planks, 1, 1), 'Y', new ItemStack(Items.Stick, 1, 1)});
		GameRegistry.addRecipe(new ItemStack(Items.SpruceBirchPickaxe), new Object[] {"XXX", " Y ", " Y ", 'X', new ItemStack(net.minecraft.init.Blocks.planks, 1, 1), 'Y', new ItemStack(Items.Stick, 1, 2)});
		GameRegistry.addRecipe(new ItemStack(Items.SpruceJunglePickaxe), new Object[] {"XXX", " Y ", " Y ", 'X', new ItemStack(net.minecraft.init.Blocks.planks, 1, 1), 'Y', new ItemStack(Items.Stick, 1, 3)});
		GameRegistry.addRecipe(new ItemStack(Items.SpruceAcaciaPickaxe), new Object[] {"XXX", " Y ", " Y ", 'X', new ItemStack(net.minecraft.init.Blocks.planks, 1, 1), 'Y', new ItemStack(Items.Stick, 1, 4)});
		GameRegistry.addRecipe(new ItemStack(Items.SpruceDarkOakPickaxe), new Object[] {"XXX", " Y ", " Y ", 'X', new ItemStack(net.minecraft.init.Blocks.planks, 1, 1), 'Y', new ItemStack(Items.Stick, 1, 5)});

		GameRegistry.addRecipe(new ItemStack(Items.BirchOakPickaxe), new Object[] {"XXX", " Y ", " Y ", 'X', new ItemStack(net.minecraft.init.Blocks.planks, 1, 2), 'Y', new ItemStack(Items.Stick, 1, 0)});
		GameRegistry.addRecipe(new ItemStack(Items.BirchSprucePickaxe), new Object[] {"XXX", " Y ", " Y ", 'X', new ItemStack(net.minecraft.init.Blocks.planks, 1, 2), 'Y', new ItemStack(Items.Stick, 1, 1)});
		GameRegistry.addRecipe(new ItemStack(Items.BirchBirchPickaxe), new Object[] {"XXX", " Y ", " Y ", 'X', new ItemStack(net.minecraft.init.Blocks.planks, 1, 2), 'Y', new ItemStack(Items.Stick, 1, 2)});
		GameRegistry.addRecipe(new ItemStack(Items.BirchJunglePickaxe), new Object[] {"XXX", " Y ", " Y ", 'X', new ItemStack(net.minecraft.init.Blocks.planks, 1, 2), 'Y', new ItemStack(Items.Stick, 1, 3)});
		GameRegistry.addRecipe(new ItemStack(Items.BirchAcaciaPickaxe), new Object[] {"XXX", " Y ", " Y ", 'X', new ItemStack(net.minecraft.init.Blocks.planks, 1, 2), 'Y', new ItemStack(Items.Stick, 1, 4)});
		GameRegistry.addRecipe(new ItemStack(Items.BirchDarkOakPickaxe), new Object[] {"XXX", " Y ", " Y ", 'X', new ItemStack(net.minecraft.init.Blocks.planks, 1, 2), 'Y', new ItemStack(Items.Stick, 1, 5)});

		GameRegistry.addRecipe(new ItemStack(Items.JungleOakPickaxe), new Object[] {"XXX", " Y ", " Y ", 'X', new ItemStack(net.minecraft.init.Blocks.planks, 1, 3), 'Y', new ItemStack(Items.Stick, 1, 0)});
		GameRegistry.addRecipe(new ItemStack(Items.JungleSprucePickaxe), new Object[] {"XXX", " Y ", " Y ", 'X', new ItemStack(net.minecraft.init.Blocks.planks, 1, 3), 'Y', new ItemStack(Items.Stick, 1, 1)});
		GameRegistry.addRecipe(new ItemStack(Items.JungleBirchPickaxe), new Object[] {"XXX", " Y ", " Y ", 'X', new ItemStack(net.minecraft.init.Blocks.planks, 1, 3), 'Y', new ItemStack(Items.Stick, 1, 2)});
		GameRegistry.addRecipe(new ItemStack(Items.JungleJunglePickaxe), new Object[] {"XXX", " Y ", " Y ", 'X', new ItemStack(net.minecraft.init.Blocks.planks, 1, 3), 'Y', new ItemStack(Items.Stick, 1, 3)});
		GameRegistry.addRecipe(new ItemStack(Items.JungleAcaciaPickaxe), new Object[] {"XXX", " Y ", " Y ", 'X', new ItemStack(net.minecraft.init.Blocks.planks, 1, 3), 'Y', new ItemStack(Items.Stick, 1, 4)});
		GameRegistry.addRecipe(new ItemStack(Items.JungleDarkOakPickaxe), new Object[] {"XXX", " Y ", " Y ", 'X', new ItemStack(net.minecraft.init.Blocks.planks, 1, 3), 'Y', new ItemStack(Items.Stick, 1, 5)});

		GameRegistry.addRecipe(new ItemStack(Items.AcaciaOakPickaxe), new Object[] {"XXX", " Y ", " Y ", 'X', new ItemStack(net.minecraft.init.Blocks.planks, 1, 4), 'Y', new ItemStack(Items.Stick, 1, 0)});
		GameRegistry.addRecipe(new ItemStack(Items.AcaciaSprucePickaxe), new Object[] {"XXX", " Y ", " Y ", 'X', new ItemStack(net.minecraft.init.Blocks.planks, 1, 4), 'Y', new ItemStack(Items.Stick, 1, 1)});
		GameRegistry.addRecipe(new ItemStack(Items.AcaciaBirchPickaxe), new Object[] {"XXX", " Y ", " Y ", 'X', new ItemStack(net.minecraft.init.Blocks.planks, 1, 4), 'Y', new ItemStack(Items.Stick, 1, 2)});
		GameRegistry.addRecipe(new ItemStack(Items.AcaciaJunglePickaxe), new Object[] {"XXX", " Y ", " Y ", 'X', new ItemStack(net.minecraft.init.Blocks.planks, 1, 4), 'Y', new ItemStack(Items.Stick, 1, 3)});
		GameRegistry.addRecipe(new ItemStack(Items.AcaciaAcaciaPickaxe), new Object[] {"XXX", " Y ", " Y ", 'X', new ItemStack(net.minecraft.init.Blocks.planks, 1, 4), 'Y', new ItemStack(Items.Stick, 1, 4)});
		GameRegistry.addRecipe(new ItemStack(Items.AcaciaDarkOakPickaxe), new Object[] {"XXX", " Y ", " Y ", 'X', new ItemStack(net.minecraft.init.Blocks.planks, 1, 4), 'Y', new ItemStack(Items.Stick, 1, 5)});


		GameRegistry.addRecipe(new ItemStack(Items.DarkOakOakPickaxe), new Object[] {"XXX", " Y ", " Y ", 'X', new ItemStack(net.minecraft.init.Blocks.planks, 1, 5), 'Y', new ItemStack(Items.Stick, 1, 0)});
		GameRegistry.addRecipe(new ItemStack(Items.DarkOakSprucePickaxe), new Object[] {"XXX", " Y ", " Y ", 'X', new ItemStack(net.minecraft.init.Blocks.planks, 1, 5), 'Y', new ItemStack(Items.Stick, 1, 1)});
		GameRegistry.addRecipe(new ItemStack(Items.DarkOakBirchPickaxe), new Object[] {"XXX", " Y ", " Y ", 'X', new ItemStack(net.minecraft.init.Blocks.planks, 1, 5), 'Y', new ItemStack(Items.Stick, 1, 2)});
		GameRegistry.addRecipe(new ItemStack(Items.DarkOakJunglePickaxe), new Object[] {"XXX", " Y ", " Y ", 'X', new ItemStack(net.minecraft.init.Blocks.planks, 1, 5), 'Y', new ItemStack(Items.Stick, 1, 3)});
		GameRegistry.addRecipe(new ItemStack(Items.DarkOakAcaciaPickaxe), new Object[] {"XXX", " Y ", " Y ", 'X', new ItemStack(net.minecraft.init.Blocks.planks, 1, 5), 'Y', new ItemStack(Items.Stick, 1, 4)});
		GameRegistry.addRecipe(new ItemStack(Items.DarkOakDarkOakPickaxe), new Object[] {"XXX", " Y ", " Y ", 'X', new ItemStack(net.minecraft.init.Blocks.planks, 1, 5), 'Y', new ItemStack(Items.Stick, 1, 5)});


		GameRegistry.addRecipe(new ItemStack(Items.StoneOakPickaxe), new Object[] {"XXX", " Y ", " Y ", 'X', new ItemStack(net.minecraft.init.Blocks.cobblestone), 'Y', new ItemStack(Items.Stick, 1, 0)});
		GameRegistry.addRecipe(new ItemStack(Items.StoneSprucePickaxe), new Object[] {"XXX", " Y ", " Y ", 'X', new ItemStack(net.minecraft.init.Blocks.cobblestone), 'Y', new ItemStack(Items.Stick, 1, 1)});
		GameRegistry.addRecipe(new ItemStack(Items.StoneBirchPickaxe), new Object[] {"XXX", " Y ", " Y ", 'X', new ItemStack(net.minecraft.init.Blocks.cobblestone), 'Y', new ItemStack(Items.Stick, 1, 2)});
		GameRegistry.addRecipe(new ItemStack(Items.StoneJunglePickaxe), new Object[] {"XXX", " Y ", " Y ", 'X', new ItemStack(net.minecraft.init.Blocks.cobblestone), 'Y', new ItemStack(Items.Stick, 1, 3)});
		GameRegistry.addRecipe(new ItemStack(Items.StoneAcaciaPickaxe), new Object[] {"XXX", " Y ", " Y ", 'X', new ItemStack(net.minecraft.init.Blocks.cobblestone), 'Y', new ItemStack(Items.Stick, 1, 4)});
		GameRegistry.addRecipe(new ItemStack(Items.StoneDarkOakPickaxe), new Object[] {"XXX", " Y ", " Y ", 'X', new ItemStack(net.minecraft.init.Blocks.cobblestone), 'Y', new ItemStack(Items.Stick, 1, 5)});

		GameRegistry.addRecipe(new ItemStack(Items.IronOakPickaxe), new Object[] {"XXX", " Y ", " Y ", 'X', new ItemStack(net.minecraft.init.Items.iron_ingot), 'Y', new ItemStack(Items.Stick, 1, 0)});
		GameRegistry.addRecipe(new ItemStack(Items.IronSprucePickaxe), new Object[] {"XXX", " Y ", " Y ", 'X', new ItemStack(net.minecraft.init.Items.iron_ingot), 'Y', new ItemStack(Items.Stick, 1, 1)});
		GameRegistry.addRecipe(new ItemStack(Items.IronBirchPickaxe), new Object[] {"XXX", " Y ", " Y ", 'X', new ItemStack(net.minecraft.init.Items.iron_ingot), 'Y', new ItemStack(Items.Stick, 1, 2)});
		GameRegistry.addRecipe(new ItemStack(Items.IronJunglePickaxe), new Object[] {"XXX", " Y ", " Y ", 'X', new ItemStack(net.minecraft.init.Items.iron_ingot), 'Y', new ItemStack(Items.Stick, 1, 3)});
		GameRegistry.addRecipe(new ItemStack(Items.IronAcaciaPickaxe), new Object[] {"XXX", " Y ", " Y ", 'X', new ItemStack(net.minecraft.init.Items.iron_ingot), 'Y', new ItemStack(Items.Stick, 1, 4)});
		GameRegistry.addRecipe(new ItemStack(Items.IronDarkOakPickaxe), new Object[] {"XXX", " Y ", " Y ", 'X', new ItemStack(net.minecraft.init.Items.iron_ingot), 'Y', new ItemStack(Items.Stick, 1, 5)});

		GameRegistry.addRecipe(new ItemStack(Items.GoldOakPickaxe), new Object[] {"XXX", " Y ", " Y ", 'X', new ItemStack(net.minecraft.init.Items.gold_ingot), 'Y', new ItemStack(Items.Stick, 1, 0)});
		GameRegistry.addRecipe(new ItemStack(Items.GoldSprucePickaxe), new Object[] {"XXX", " Y ", " Y ", 'X', new ItemStack(net.minecraft.init.Items.gold_ingot), 'Y', new ItemStack(Items.Stick, 1, 1)});
		GameRegistry.addRecipe(new ItemStack(Items.GoldBirchPickaxe), new Object[] {"XXX", " Y ", " Y ", 'X', new ItemStack(net.minecraft.init.Items.gold_ingot), 'Y', new ItemStack(Items.Stick, 1, 2)});
		GameRegistry.addRecipe(new ItemStack(Items.GoldJunglePickaxe), new Object[] {"XXX", " Y ", " Y ", 'X', new ItemStack(net.minecraft.init.Items.gold_ingot), 'Y', new ItemStack(Items.Stick, 1, 3)});
		GameRegistry.addRecipe(new ItemStack(Items.GoldAcaciaPickaxe), new Object[] {"XXX", " Y ", " Y ", 'X', new ItemStack(net.minecraft.init.Items.gold_ingot), 'Y', new ItemStack(Items.Stick, 1, 4)});
		GameRegistry.addRecipe(new ItemStack(Items.GoldDarkOakPickaxe), new Object[] {"XXX", " Y ", " Y ", 'X', new ItemStack(net.minecraft.init.Items.gold_ingot), 'Y', new ItemStack(Items.Stick, 1, 5)});

		GameRegistry.addRecipe(new ItemStack(Items.DiamondOakPickaxe), new Object[] {"XXX", " Y ", " Y ", 'X', new ItemStack(net.minecraft.init.Items.diamond), 'Y', new ItemStack(Items.Stick, 1, 0)});
		GameRegistry.addRecipe(new ItemStack(Items.DiamondSprucePickaxe), new Object[] {"XXX", " Y ", " Y ", 'X', new ItemStack(net.minecraft.init.Items.diamond), 'Y', new ItemStack(Items.Stick, 1, 1)});
		GameRegistry.addRecipe(new ItemStack(Items.DiamondBirchPickaxe), new Object[] {"XXX", " Y ", " Y ", 'X', new ItemStack(net.minecraft.init.Items.diamond), 'Y', new ItemStack(Items.Stick, 1, 2)});
		GameRegistry.addRecipe(new ItemStack(Items.DiamondJunglePickaxe), new Object[] {"XXX", " Y ", " Y ", 'X', new ItemStack(net.minecraft.init.Items.diamond), 'Y', new ItemStack(Items.Stick, 1, 3)});
		GameRegistry.addRecipe(new ItemStack(Items.DiamondAcaciaPickaxe), new Object[] {"XXX", " Y ", " Y ", 'X', new ItemStack(net.minecraft.init.Items.diamond), 'Y', new ItemStack(Items.Stick, 1, 4)});
		GameRegistry.addRecipe(new ItemStack(Items.DiamondDarkOakPickaxe), new Object[] {"XXX", " Y ", " Y ", 'X', new ItemStack(net.minecraft.init.Items.diamond), 'Y', new ItemStack(Items.Stick, 1, 5)});
	}

	private static void axe()
	{
		GameRegistry.addRecipe(new ItemStack(Items.OakOakAxe), new Object[] {"XX", "XY", " Y", 'X', new ItemStack(net.minecraft.init.Blocks.planks, 1, 0), 'Y', new ItemStack(Items.Stick, 1, 0)});
		GameRegistry.addRecipe(new ItemStack(Items.OakSpruceAxe), new Object[] {"XX", "XY", " Y", 'X', new ItemStack(net.minecraft.init.Blocks.planks, 1, 0), 'Y', new ItemStack(Items.Stick, 1, 1)});
		GameRegistry.addRecipe(new ItemStack(Items.OakBirchAxe), new Object[] {"XX", "XY", " Y", 'X', new ItemStack(net.minecraft.init.Blocks.planks, 1, 0), 'Y', new ItemStack(Items.Stick, 1, 2)});
		GameRegistry.addRecipe(new ItemStack(Items.OakJungleAxe), new Object[] {"XX", "XY", " Y", 'X', new ItemStack(net.minecraft.init.Blocks.planks, 1, 0), 'Y', new ItemStack(Items.Stick, 1, 3)});
		GameRegistry.addRecipe(new ItemStack(Items.OakAcaciaAxe), new Object[] {"XX", "XY", " Y", 'X', new ItemStack(net.minecraft.init.Blocks.planks, 1, 0), 'Y', new ItemStack(Items.Stick, 1, 4)});
		GameRegistry.addRecipe(new ItemStack(Items.OakDarkOakAxe), new Object[] {"XX", "XY", " Y", 'X', new ItemStack(net.minecraft.init.Blocks.planks, 1, 0), 'Y', new ItemStack(Items.Stick, 1, 5)});

		GameRegistry.addRecipe(new ItemStack(Items.SpruceOakAxe), new Object[] {"XX", "XY", " Y", 'X', new ItemStack(net.minecraft.init.Blocks.planks, 1, 1), 'Y', new ItemStack(Items.Stick, 1, 0)});
		GameRegistry.addRecipe(new ItemStack(Items.SpruceSpruceAxe), new Object[] {"XX", "XY", " Y", 'X', new ItemStack(net.minecraft.init.Blocks.planks, 1, 1), 'Y', new ItemStack(Items.Stick, 1, 1)});
		GameRegistry.addRecipe(new ItemStack(Items.SpruceBirchAxe), new Object[] {"XX", "XY", " Y", 'X', new ItemStack(net.minecraft.init.Blocks.planks, 1, 1), 'Y', new ItemStack(Items.Stick, 1, 2)});
		GameRegistry.addRecipe(new ItemStack(Items.SpruceJungleAxe), new Object[] {"XX", "XY", " Y", 'X', new ItemStack(net.minecraft.init.Blocks.planks, 1, 1), 'Y', new ItemStack(Items.Stick, 1, 3)});
		GameRegistry.addRecipe(new ItemStack(Items.SpruceAcaciaAxe), new Object[] {"XX", "XY", " Y", 'X', new ItemStack(net.minecraft.init.Blocks.planks, 1, 1), 'Y', new ItemStack(Items.Stick, 1, 4)});
		GameRegistry.addRecipe(new ItemStack(Items.SpruceDarkOakAxe), new Object[] {"XX", "XY", " Y", 'X', new ItemStack(net.minecraft.init.Blocks.planks, 1, 1), 'Y', new ItemStack(Items.Stick, 1, 5)});

		GameRegistry.addRecipe(new ItemStack(Items.BirchOakAxe), new Object[] {"XX", "XY", " Y", 'X', new ItemStack(net.minecraft.init.Blocks.planks, 1, 2), 'Y', new ItemStack(Items.Stick, 1, 0)});
		GameRegistry.addRecipe(new ItemStack(Items.BirchSpruceAxe), new Object[] {"XX", "XY", " Y", 'X', new ItemStack(net.minecraft.init.Blocks.planks, 1, 2), 'Y', new ItemStack(Items.Stick, 1, 1)});
		GameRegistry.addRecipe(new ItemStack(Items.BirchBirchAxe), new Object[] {"XX", "XY", " Y", 'X', new ItemStack(net.minecraft.init.Blocks.planks, 1, 2), 'Y', new ItemStack(Items.Stick, 1, 2)});
		GameRegistry.addRecipe(new ItemStack(Items.BirchJungleAxe), new Object[] {"XX", "XY", " Y", 'X', new ItemStack(net.minecraft.init.Blocks.planks, 1, 2), 'Y', new ItemStack(Items.Stick, 1, 3)});
		GameRegistry.addRecipe(new ItemStack(Items.BirchAcaciaAxe), new Object[] {"XX", "XY", " Y", 'X', new ItemStack(net.minecraft.init.Blocks.planks, 1, 2), 'Y', new ItemStack(Items.Stick, 1, 4)});
		GameRegistry.addRecipe(new ItemStack(Items.BirchDarkOakAxe), new Object[] {"XX", "XY", " Y", 'X', new ItemStack(net.minecraft.init.Blocks.planks, 1, 2), 'Y', new ItemStack(Items.Stick, 1, 5)});

		GameRegistry.addRecipe(new ItemStack(Items.JungleOakAxe), new Object[] {"XX", "XY", " Y", 'X', new ItemStack(net.minecraft.init.Blocks.planks, 1, 3), 'Y', new ItemStack(Items.Stick, 1, 0)});
		GameRegistry.addRecipe(new ItemStack(Items.JungleSpruceAxe), new Object[] {"XX", "XY", " Y", 'X', new ItemStack(net.minecraft.init.Blocks.planks, 1, 3), 'Y', new ItemStack(Items.Stick, 1, 1)});
		GameRegistry.addRecipe(new ItemStack(Items.JungleBirchAxe), new Object[] {"XX", "XY", " Y", 'X', new ItemStack(net.minecraft.init.Blocks.planks, 1, 3), 'Y', new ItemStack(Items.Stick, 1, 2)});
		GameRegistry.addRecipe(new ItemStack(Items.JungleJungleAxe), new Object[] {"XX", "XY", " Y", 'X', new ItemStack(net.minecraft.init.Blocks.planks, 1, 3), 'Y', new ItemStack(Items.Stick, 1, 3)});
		GameRegistry.addRecipe(new ItemStack(Items.JungleAcaciaAxe), new Object[] {"XX", "XY", " Y", 'X', new ItemStack(net.minecraft.init.Blocks.planks, 1, 3), 'Y', new ItemStack(Items.Stick, 1, 4)});
		GameRegistry.addRecipe(new ItemStack(Items.JungleDarkOakAxe), new Object[] {"XX", "XY", " Y", 'X', new ItemStack(net.minecraft.init.Blocks.planks, 1, 3), 'Y', new ItemStack(Items.Stick, 1, 5)});

		GameRegistry.addRecipe(new ItemStack(Items.AcaciaOakAxe), new Object[] {"XX", "XY", " Y", 'X', new ItemStack(net.minecraft.init.Blocks.planks, 1, 4), 'Y', new ItemStack(Items.Stick, 1, 0)});
		GameRegistry.addRecipe(new ItemStack(Items.AcaciaSpruceAxe), new Object[] {"XX", "XY", " Y", 'X', new ItemStack(net.minecraft.init.Blocks.planks, 1, 4), 'Y', new ItemStack(Items.Stick, 1, 1)});
		GameRegistry.addRecipe(new ItemStack(Items.AcaciaBirchAxe), new Object[] {"XX", "XY", " Y", 'X', new ItemStack(net.minecraft.init.Blocks.planks, 1, 4), 'Y', new ItemStack(Items.Stick, 1, 2)});
		GameRegistry.addRecipe(new ItemStack(Items.AcaciaJungleAxe), new Object[] {"XX", "XY", " Y", 'X', new ItemStack(net.minecraft.init.Blocks.planks, 1, 4), 'Y', new ItemStack(Items.Stick, 1, 3)});
		GameRegistry.addRecipe(new ItemStack(Items.AcaciaAcaciaAxe), new Object[] {"XX", "XY", " Y", 'X', new ItemStack(net.minecraft.init.Blocks.planks, 1, 4), 'Y', new ItemStack(Items.Stick, 1, 4)});
		GameRegistry.addRecipe(new ItemStack(Items.AcaciaDarkOakAxe), new Object[] {"XX", "XY", " Y", 'X', new ItemStack(net.minecraft.init.Blocks.planks, 1, 4), 'Y', new ItemStack(Items.Stick, 1, 5)});


		GameRegistry.addRecipe(new ItemStack(Items.DarkOakOakAxe), new Object[] {"XX", "XY", " Y", 'X', new ItemStack(net.minecraft.init.Blocks.planks, 1, 5), 'Y', new ItemStack(Items.Stick, 1, 0)});
		GameRegistry.addRecipe(new ItemStack(Items.DarkOakSpruceAxe), new Object[] {"XX", "XY", " Y", 'X', new ItemStack(net.minecraft.init.Blocks.planks, 1, 5), 'Y', new ItemStack(Items.Stick, 1, 1)});
		GameRegistry.addRecipe(new ItemStack(Items.DarkOakBirchAxe), new Object[] {"XX", "XY", " Y", 'X', new ItemStack(net.minecraft.init.Blocks.planks, 1, 5), 'Y', new ItemStack(Items.Stick, 1, 2)});
		GameRegistry.addRecipe(new ItemStack(Items.DarkOakJungleAxe), new Object[] {"XX", "XY", " Y", 'X', new ItemStack(net.minecraft.init.Blocks.planks, 1, 5), 'Y', new ItemStack(Items.Stick, 1, 3)});
		GameRegistry.addRecipe(new ItemStack(Items.DarkOakAcaciaAxe), new Object[] {"XX", "XY", " Y", 'X', new ItemStack(net.minecraft.init.Blocks.planks, 1, 5), 'Y', new ItemStack(Items.Stick, 1, 4)});
		GameRegistry.addRecipe(new ItemStack(Items.DarkOakDarkOakAxe), new Object[] {"XX", "XY", " Y", 'X', new ItemStack(net.minecraft.init.Blocks.planks, 1, 5), 'Y', new ItemStack(Items.Stick, 1, 5)});


		GameRegistry.addRecipe(new ItemStack(Items.StoneOakAxe), new Object[] {"XX", "XY", " Y", 'X', new ItemStack(net.minecraft.init.Blocks.cobblestone), 'Y', new ItemStack(Items.Stick, 1, 0)});
		GameRegistry.addRecipe(new ItemStack(Items.StoneSpruceAxe), new Object[] {"XX", "XY", " Y", 'X', new ItemStack(net.minecraft.init.Blocks.cobblestone), 'Y', new ItemStack(Items.Stick, 1, 1)});
		GameRegistry.addRecipe(new ItemStack(Items.StoneBirchAxe), new Object[] {"XX", "XY", " Y", 'X', new ItemStack(net.minecraft.init.Blocks.cobblestone), 'Y', new ItemStack(Items.Stick, 1, 2)});
		GameRegistry.addRecipe(new ItemStack(Items.StoneJungleAxe), new Object[] {"XX", "XY", " Y", 'X', new ItemStack(net.minecraft.init.Blocks.cobblestone), 'Y', new ItemStack(Items.Stick, 1, 3)});
		GameRegistry.addRecipe(new ItemStack(Items.StoneAcaciaAxe), new Object[] {"XX", "XY", " Y", 'X', new ItemStack(net.minecraft.init.Blocks.cobblestone), 'Y', new ItemStack(Items.Stick, 1, 4)});
		GameRegistry.addRecipe(new ItemStack(Items.StoneDarkOakAxe), new Object[] {"XX", "XY", " Y", 'X', new ItemStack(net.minecraft.init.Blocks.cobblestone), 'Y', new ItemStack(Items.Stick, 1, 5)});

		GameRegistry.addRecipe(new ItemStack(Items.IronOakAxe), new Object[] {"XX", "XY", " Y", 'X', new ItemStack(net.minecraft.init.Items.iron_ingot), 'Y', new ItemStack(Items.Stick, 1, 0)});
		GameRegistry.addRecipe(new ItemStack(Items.IronSpruceAxe), new Object[] {"XX", "XY", " Y", 'X', new ItemStack(net.minecraft.init.Items.iron_ingot), 'Y', new ItemStack(Items.Stick, 1, 1)});
		GameRegistry.addRecipe(new ItemStack(Items.IronBirchAxe), new Object[] {"XX", "XY", " Y", 'X', new ItemStack(net.minecraft.init.Items.iron_ingot), 'Y', new ItemStack(Items.Stick, 1, 2)});
		GameRegistry.addRecipe(new ItemStack(Items.IronJungleAxe), new Object[] {"XX", "XY", " Y", 'X', new ItemStack(net.minecraft.init.Items.iron_ingot), 'Y', new ItemStack(Items.Stick, 1, 3)});
		GameRegistry.addRecipe(new ItemStack(Items.IronAcaciaAxe), new Object[] {"XX", "XY", " Y", 'X', new ItemStack(net.minecraft.init.Items.iron_ingot), 'Y', new ItemStack(Items.Stick, 1, 4)});
		GameRegistry.addRecipe(new ItemStack(Items.IronDarkOakAxe), new Object[] {"XX", "XY", " Y", 'X', new ItemStack(net.minecraft.init.Items.iron_ingot), 'Y', new ItemStack(Items.Stick, 1, 5)});

		GameRegistry.addRecipe(new ItemStack(Items.GoldOakAxe), new Object[] {"XX", "XY", " Y", 'X', new ItemStack(net.minecraft.init.Items.gold_ingot), 'Y', new ItemStack(Items.Stick, 1, 0)});
		GameRegistry.addRecipe(new ItemStack(Items.GoldSpruceAxe), new Object[] {"XX", "XY", " Y", 'X', new ItemStack(net.minecraft.init.Items.gold_ingot), 'Y', new ItemStack(Items.Stick, 1, 1)});
		GameRegistry.addRecipe(new ItemStack(Items.GoldBirchAxe), new Object[] {"XX", "XY", " Y", 'X', new ItemStack(net.minecraft.init.Items.gold_ingot), 'Y', new ItemStack(Items.Stick, 1, 2)});
		GameRegistry.addRecipe(new ItemStack(Items.GoldJungleAxe), new Object[] {"XX", "XY", " Y", 'X', new ItemStack(net.minecraft.init.Items.gold_ingot), 'Y', new ItemStack(Items.Stick, 1, 3)});
		GameRegistry.addRecipe(new ItemStack(Items.GoldAcaciaAxe), new Object[] {"XX", "XY", " Y", 'X', new ItemStack(net.minecraft.init.Items.gold_ingot), 'Y', new ItemStack(Items.Stick, 1, 4)});
		GameRegistry.addRecipe(new ItemStack(Items.GoldDarkOakAxe), new Object[] {"XX", "XY", " Y", 'X', new ItemStack(net.minecraft.init.Items.gold_ingot), 'Y', new ItemStack(Items.Stick, 1, 5)});

		GameRegistry.addRecipe(new ItemStack(Items.DiamondOakAxe), new Object[] {"XX", "XY", " Y", 'X', new ItemStack(net.minecraft.init.Items.diamond), 'Y', new ItemStack(Items.Stick, 1, 0)});
		GameRegistry.addRecipe(new ItemStack(Items.DiamondSpruceAxe), new Object[] {"XX", "XY", " Y", 'X', new ItemStack(net.minecraft.init.Items.diamond), 'Y', new ItemStack(Items.Stick, 1, 1)});
		GameRegistry.addRecipe(new ItemStack(Items.DiamondBirchAxe), new Object[] {"XX", "XY", " Y", 'X', new ItemStack(net.minecraft.init.Items.diamond), 'Y', new ItemStack(Items.Stick, 1, 2)});
		GameRegistry.addRecipe(new ItemStack(Items.DiamondJungleAxe), new Object[] {"XX", "XY", " Y", 'X', new ItemStack(net.minecraft.init.Items.diamond), 'Y', new ItemStack(Items.Stick, 1, 3)});
		GameRegistry.addRecipe(new ItemStack(Items.DiamondAcaciaAxe), new Object[] {"XX", "XY", " Y", 'X', new ItemStack(net.minecraft.init.Items.diamond), 'Y', new ItemStack(Items.Stick, 1, 4)});
		GameRegistry.addRecipe(new ItemStack(Items.DiamondDarkOakAxe), new Object[] {"XX", "XY", " Y", 'X', new ItemStack(net.minecraft.init.Items.diamond), 'Y', new ItemStack(Items.Stick, 1, 5)});
	}

	private static void hoe()
	{
		GameRegistry.addRecipe(new ItemStack(Items.OakOakHoe), new Object[] {"XX", " Y", " Y", 'X', new ItemStack(net.minecraft.init.Blocks.planks, 1, 0), 'Y', new ItemStack(Items.Stick, 1, 0)});
		GameRegistry.addRecipe(new ItemStack(Items.OakSpruceHoe), new Object[] {"XX", " Y", " Y", 'X', new ItemStack(net.minecraft.init.Blocks.planks, 1, 0), 'Y', new ItemStack(Items.Stick, 1, 1)});
		GameRegistry.addRecipe(new ItemStack(Items.OakBirchHoe), new Object[] {"XX", " Y", " Y", 'X', new ItemStack(net.minecraft.init.Blocks.planks, 1, 0), 'Y', new ItemStack(Items.Stick, 1, 2)});
		GameRegistry.addRecipe(new ItemStack(Items.OakJungleHoe), new Object[] {"XX", " Y", " Y", 'X', new ItemStack(net.minecraft.init.Blocks.planks, 1, 0), 'Y', new ItemStack(Items.Stick, 1, 3)});
		GameRegistry.addRecipe(new ItemStack(Items.OakAcaciaHoe), new Object[] {"XX", " Y", " Y", 'X', new ItemStack(net.minecraft.init.Blocks.planks, 1, 0), 'Y', new ItemStack(Items.Stick, 1, 4)});
		GameRegistry.addRecipe(new ItemStack(Items.OakDarkOakHoe), new Object[] {"XX", " Y", " Y", 'X', new ItemStack(net.minecraft.init.Blocks.planks, 1, 0), 'Y', new ItemStack(Items.Stick, 1, 5)});

		GameRegistry.addRecipe(new ItemStack(Items.SpruceOakHoe), new Object[] {"XX", " Y", " Y", 'X', new ItemStack(net.minecraft.init.Blocks.planks, 1, 1), 'Y', new ItemStack(Items.Stick, 1, 0)});
		GameRegistry.addRecipe(new ItemStack(Items.SpruceSpruceHoe), new Object[] {"XX", " Y", " Y", 'X', new ItemStack(net.minecraft.init.Blocks.planks, 1, 1), 'Y', new ItemStack(Items.Stick, 1, 1)});
		GameRegistry.addRecipe(new ItemStack(Items.SpruceBirchHoe), new Object[] {"XX", " Y", " Y", 'X', new ItemStack(net.minecraft.init.Blocks.planks, 1, 1), 'Y', new ItemStack(Items.Stick, 1, 2)});
		GameRegistry.addRecipe(new ItemStack(Items.SpruceJungleHoe), new Object[] {"XX", " Y", " Y", 'X', new ItemStack(net.minecraft.init.Blocks.planks, 1, 1), 'Y', new ItemStack(Items.Stick, 1, 3)});
		GameRegistry.addRecipe(new ItemStack(Items.SpruceAcaciaHoe), new Object[] {"XX", " Y", " Y", 'X', new ItemStack(net.minecraft.init.Blocks.planks, 1, 1), 'Y', new ItemStack(Items.Stick, 1, 4)});
		GameRegistry.addRecipe(new ItemStack(Items.SpruceDarkOakHoe), new Object[] {"XX", " Y", " Y", 'X', new ItemStack(net.minecraft.init.Blocks.planks, 1, 1), 'Y', new ItemStack(Items.Stick, 1, 5)});

		GameRegistry.addRecipe(new ItemStack(Items.BirchOakHoe), new Object[] {"XX", " Y", " Y", 'X', new ItemStack(net.minecraft.init.Blocks.planks, 1, 2), 'Y', new ItemStack(Items.Stick, 1, 0)});
		GameRegistry.addRecipe(new ItemStack(Items.BirchSpruceHoe), new Object[] {"XX", " Y", " Y", 'X', new ItemStack(net.minecraft.init.Blocks.planks, 1, 2), 'Y', new ItemStack(Items.Stick, 1, 1)});
		GameRegistry.addRecipe(new ItemStack(Items.BirchBirchHoe), new Object[] {"XX", " Y", " Y", 'X', new ItemStack(net.minecraft.init.Blocks.planks, 1, 2), 'Y', new ItemStack(Items.Stick, 1, 2)});
		GameRegistry.addRecipe(new ItemStack(Items.BirchJungleHoe), new Object[] {"XX", " Y", " Y", 'X', new ItemStack(net.minecraft.init.Blocks.planks, 1, 2), 'Y', new ItemStack(Items.Stick, 1, 3)});
		GameRegistry.addRecipe(new ItemStack(Items.BirchAcaciaHoe), new Object[] {"XX", " Y", " Y", 'X', new ItemStack(net.minecraft.init.Blocks.planks, 1, 2), 'Y', new ItemStack(Items.Stick, 1, 4)});
		GameRegistry.addRecipe(new ItemStack(Items.BirchDarkOakHoe), new Object[] {"XX", " Y", " Y", 'X', new ItemStack(net.minecraft.init.Blocks.planks, 1, 2), 'Y', new ItemStack(Items.Stick, 1, 5)});

		GameRegistry.addRecipe(new ItemStack(Items.JungleOakHoe), new Object[] {"XX", " Y", " Y", 'X', new ItemStack(net.minecraft.init.Blocks.planks, 1, 3), 'Y', new ItemStack(Items.Stick, 1, 0)});
		GameRegistry.addRecipe(new ItemStack(Items.JungleSpruceHoe), new Object[] {"XX", " Y", " Y", 'X', new ItemStack(net.minecraft.init.Blocks.planks, 1, 3), 'Y', new ItemStack(Items.Stick, 1, 1)});
		GameRegistry.addRecipe(new ItemStack(Items.JungleBirchHoe), new Object[] {"XX", " Y", " Y", 'X', new ItemStack(net.minecraft.init.Blocks.planks, 1, 3), 'Y', new ItemStack(Items.Stick, 1, 2)});
		GameRegistry.addRecipe(new ItemStack(Items.JungleJungleHoe), new Object[] {"XX", " Y", " Y", 'X', new ItemStack(net.minecraft.init.Blocks.planks, 1, 3), 'Y', new ItemStack(Items.Stick, 1, 3)});
		GameRegistry.addRecipe(new ItemStack(Items.JungleAcaciaHoe), new Object[] {"XX", " Y", " Y", 'X', new ItemStack(net.minecraft.init.Blocks.planks, 1, 3), 'Y', new ItemStack(Items.Stick, 1, 4)});
		GameRegistry.addRecipe(new ItemStack(Items.JungleDarkOakHoe), new Object[] {"XX", " Y", " Y", 'X', new ItemStack(net.minecraft.init.Blocks.planks, 1, 3), 'Y', new ItemStack(Items.Stick, 1, 5)});

		GameRegistry.addRecipe(new ItemStack(Items.AcaciaOakHoe), new Object[] {"XX", " Y", " Y", 'X', new ItemStack(net.minecraft.init.Blocks.planks, 1, 4), 'Y', new ItemStack(Items.Stick, 1, 0)});
		GameRegistry.addRecipe(new ItemStack(Items.AcaciaSpruceHoe), new Object[] {"XX", " Y", " Y", 'X', new ItemStack(net.minecraft.init.Blocks.planks, 1, 4), 'Y', new ItemStack(Items.Stick, 1, 1)});
		GameRegistry.addRecipe(new ItemStack(Items.AcaciaBirchHoe), new Object[] {"XX", " Y", " Y", 'X', new ItemStack(net.minecraft.init.Blocks.planks, 1, 4), 'Y', new ItemStack(Items.Stick, 1, 2)});
		GameRegistry.addRecipe(new ItemStack(Items.AcaciaJungleHoe), new Object[] {"XX", " Y", " Y", 'X', new ItemStack(net.minecraft.init.Blocks.planks, 1, 4), 'Y', new ItemStack(Items.Stick, 1, 3)});
		GameRegistry.addRecipe(new ItemStack(Items.AcaciaAcaciaHoe), new Object[] {"XX", " Y", " Y", 'X', new ItemStack(net.minecraft.init.Blocks.planks, 1, 4), 'Y', new ItemStack(Items.Stick, 1, 4)});
		GameRegistry.addRecipe(new ItemStack(Items.AcaciaDarkOakHoe), new Object[] {"XX", " Y", " Y", 'X', new ItemStack(net.minecraft.init.Blocks.planks, 1, 4), 'Y', new ItemStack(Items.Stick, 1, 5)});


		GameRegistry.addRecipe(new ItemStack(Items.DarkOakOakHoe), new Object[] {"XX", " Y", " Y", 'X', new ItemStack(net.minecraft.init.Blocks.planks, 1, 5), 'Y', new ItemStack(Items.Stick, 1, 0)});
		GameRegistry.addRecipe(new ItemStack(Items.DarkOakSpruceHoe), new Object[] {"XX", " Y", " Y", 'X', new ItemStack(net.minecraft.init.Blocks.planks, 1, 5), 'Y', new ItemStack(Items.Stick, 1, 1)});
		GameRegistry.addRecipe(new ItemStack(Items.DarkOakBirchHoe), new Object[] {"XX", " Y", " Y", 'X', new ItemStack(net.minecraft.init.Blocks.planks, 1, 5), 'Y', new ItemStack(Items.Stick, 1, 2)});
		GameRegistry.addRecipe(new ItemStack(Items.DarkOakJungleHoe), new Object[] {"XX", " Y", " Y", 'X', new ItemStack(net.minecraft.init.Blocks.planks, 1, 5), 'Y', new ItemStack(Items.Stick, 1, 3)});
		GameRegistry.addRecipe(new ItemStack(Items.DarkOakAcaciaHoe), new Object[] {"XX", " Y", " Y", 'X', new ItemStack(net.minecraft.init.Blocks.planks, 1, 5), 'Y', new ItemStack(Items.Stick, 1, 4)});
		GameRegistry.addRecipe(new ItemStack(Items.DarkOakDarkOakHoe), new Object[] {"XX", " Y", " Y", 'X', new ItemStack(net.minecraft.init.Blocks.planks, 1, 5), 'Y', new ItemStack(Items.Stick, 1, 5)});


		GameRegistry.addRecipe(new ItemStack(Items.StoneOakHoe), new Object[] {"XX", " Y", " Y", 'X', new ItemStack(net.minecraft.init.Blocks.cobblestone), 'Y', new ItemStack(Items.Stick, 1, 0)});
		GameRegistry.addRecipe(new ItemStack(Items.StoneSpruceHoe), new Object[] {"XX", " Y", " Y", 'X', new ItemStack(net.minecraft.init.Blocks.cobblestone), 'Y', new ItemStack(Items.Stick, 1, 1)});
		GameRegistry.addRecipe(new ItemStack(Items.StoneBirchHoe), new Object[] {"XX", " Y", " Y", 'X', new ItemStack(net.minecraft.init.Blocks.cobblestone), 'Y', new ItemStack(Items.Stick, 1, 2)});
		GameRegistry.addRecipe(new ItemStack(Items.StoneJungleHoe), new Object[] {"XX", " Y", " Y", 'X', new ItemStack(net.minecraft.init.Blocks.cobblestone), 'Y', new ItemStack(Items.Stick, 1, 3)});
		GameRegistry.addRecipe(new ItemStack(Items.StoneAcaciaHoe), new Object[] {"XX", " Y", " Y", 'X', new ItemStack(net.minecraft.init.Blocks.cobblestone), 'Y', new ItemStack(Items.Stick, 1, 4)});
		GameRegistry.addRecipe(new ItemStack(Items.StoneDarkOakHoe), new Object[] {"XX", " Y", " Y", 'X', new ItemStack(net.minecraft.init.Blocks.cobblestone), 'Y', new ItemStack(Items.Stick, 1, 5)});

		GameRegistry.addRecipe(new ItemStack(Items.IronOakHoe), new Object[] {"XX", " Y", " Y", 'X', new ItemStack(net.minecraft.init.Items.iron_ingot), 'Y', new ItemStack(Items.Stick, 1, 0)});
		GameRegistry.addRecipe(new ItemStack(Items.IronSpruceHoe), new Object[] {"XX", " Y", " Y", 'X', new ItemStack(net.minecraft.init.Items.iron_ingot), 'Y', new ItemStack(Items.Stick, 1, 1)});
		GameRegistry.addRecipe(new ItemStack(Items.IronBirchHoe), new Object[] {"XX", " Y", " Y", 'X', new ItemStack(net.minecraft.init.Items.iron_ingot), 'Y', new ItemStack(Items.Stick, 1, 2)});
		GameRegistry.addRecipe(new ItemStack(Items.IronJungleHoe), new Object[] {"XX", " Y", " Y", 'X', new ItemStack(net.minecraft.init.Items.iron_ingot), 'Y', new ItemStack(Items.Stick, 1, 3)});
		GameRegistry.addRecipe(new ItemStack(Items.IronAcaciaHoe), new Object[] {"XX", " Y", " Y", 'X', new ItemStack(net.minecraft.init.Items.iron_ingot), 'Y', new ItemStack(Items.Stick, 1, 4)});
		GameRegistry.addRecipe(new ItemStack(Items.IronDarkOakHoe), new Object[] {"XX", " Y", " Y", 'X', new ItemStack(net.minecraft.init.Items.iron_ingot), 'Y', new ItemStack(Items.Stick, 1, 5)});

		GameRegistry.addRecipe(new ItemStack(Items.GoldOakHoe), new Object[] {"XX", " Y", " Y", 'X', new ItemStack(net.minecraft.init.Items.gold_ingot), 'Y', new ItemStack(Items.Stick, 1, 0)});
		GameRegistry.addRecipe(new ItemStack(Items.GoldSpruceHoe), new Object[] {"XX", " Y", " Y", 'X', new ItemStack(net.minecraft.init.Items.gold_ingot), 'Y', new ItemStack(Items.Stick, 1, 1)});
		GameRegistry.addRecipe(new ItemStack(Items.GoldBirchHoe), new Object[] {"XX", " Y", " Y", 'X', new ItemStack(net.minecraft.init.Items.gold_ingot), 'Y', new ItemStack(Items.Stick, 1, 2)});
		GameRegistry.addRecipe(new ItemStack(Items.GoldJungleHoe), new Object[] {"XX", " Y", " Y", 'X', new ItemStack(net.minecraft.init.Items.gold_ingot), 'Y', new ItemStack(Items.Stick, 1, 3)});
		GameRegistry.addRecipe(new ItemStack(Items.GoldAcaciaHoe), new Object[] {"XX", " Y", " Y", 'X', new ItemStack(net.minecraft.init.Items.gold_ingot), 'Y', new ItemStack(Items.Stick, 1, 4)});
		GameRegistry.addRecipe(new ItemStack(Items.GoldDarkOakHoe), new Object[] {"XX", " Y", " Y", 'X', new ItemStack(net.minecraft.init.Items.gold_ingot), 'Y', new ItemStack(Items.Stick, 1, 5)});

		GameRegistry.addRecipe(new ItemStack(Items.DiamondOakHoe), new Object[] {"XX", " Y", " Y", 'X', new ItemStack(net.minecraft.init.Items.diamond), 'Y', new ItemStack(Items.Stick, 1, 0)});
		GameRegistry.addRecipe(new ItemStack(Items.DiamondSpruceHoe), new Object[] {"XX", " Y", " Y", 'X', new ItemStack(net.minecraft.init.Items.diamond), 'Y', new ItemStack(Items.Stick, 1, 1)});
		GameRegistry.addRecipe(new ItemStack(Items.DiamondBirchHoe), new Object[] {"XX", " Y", " Y", 'X', new ItemStack(net.minecraft.init.Items.diamond), 'Y', new ItemStack(Items.Stick, 1, 2)});
		GameRegistry.addRecipe(new ItemStack(Items.DiamondJungleHoe), new Object[] {"XX", " Y", " Y", 'X', new ItemStack(net.minecraft.init.Items.diamond), 'Y', new ItemStack(Items.Stick, 1, 3)});
		GameRegistry.addRecipe(new ItemStack(Items.DiamondAcaciaHoe), new Object[] {"XX", " Y", " Y", 'X', new ItemStack(net.minecraft.init.Items.diamond), 'Y', new ItemStack(Items.Stick, 1, 4)});
		GameRegistry.addRecipe(new ItemStack(Items.DiamondDarkOakHoe), new Object[] {"XX", " Y", " Y", 'X', new ItemStack(net.minecraft.init.Items.diamond), 'Y', new ItemStack(Items.Stick, 1, 5)});
	}

	private static void bow()
	{	
        GameRegistry.addRecipe(new ItemStack(Items.SpruceBow, 1), new Object[] {" #X", "# X", " #X", 'X', new ItemStack(net.minecraft.init.Items.string), '#', new ItemStack(Items.Stick, 1, 0)});
        GameRegistry.addRecipe(new ItemStack(Items.SpruceBow, 1), new Object[] {" #X", "# X", " #X", 'X', new ItemStack(net.minecraft.init.Items.string), '#', new ItemStack(Items.Stick, 1, 1)});
        GameRegistry.addRecipe(new ItemStack(Items.BirchBow, 1), new Object[] {" #X", "# X", " #X", 'X', new ItemStack(net.minecraft.init.Items.string), '#', new ItemStack(Items.Stick, 1, 2)});
        GameRegistry.addRecipe(new ItemStack(Items.JungleBow, 1), new Object[] {" #X", "# X", " #X", 'X', new ItemStack(net.minecraft.init.Items.string), '#', new ItemStack(Items.Stick, 1, 3)});
        GameRegistry.addRecipe(new ItemStack(Items.AcaciaBow, 1), new Object[] {" #X", "# X", " #X", 'X', new ItemStack(net.minecraft.init.Items.string), '#', new ItemStack(Items.Stick, 1, 4)});
        GameRegistry.addRecipe(new ItemStack(Items.DarkOakBow, 1), new Object[] {" #X", "# X", " #X", 'X', new ItemStack(net.minecraft.init.Items.string), '#', new ItemStack(Items.Stick, 1, 5)});
	}
}
}

 

 

I know the problem, which causes the crash, is created by this part of the code:

 

for(int a = 0; a < 6; ++a){
for(int b = 0; b < 6; ++b){
for(int c = 0; c < 6; ++c){
for(int d = 0; d < 6; ++d){
for(int e = 0; e < 6; ++e){
for(int f = 0; f < 6; ++f){

 

Well. Knowing this, here is my question:

 

Is there any way to create a code which would do the same function as the code is just above?

By the way it could ran without crash...

 

(I hope you understood me  :) )

 

Thanks for helping

Link to comment
Share on other sites

Use the ore dictionary.

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Link to comment
Share on other sites

ironCopper

 

Huh?

 

But to answer the question: yes, you can.  But you probably shouldn't.

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Link to comment
Share on other sites

The reason not to is because mods will want to distinguish copper and iron.

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Link to comment
Share on other sites

Well, like Draco's said. If you overload the same varItemStack then you're taking compatibility away from mods that may use the same names. You're example of sticks makes me immediately think of Tinkerer's Construct.

 

The more items you add to a single name greatly diminishes your mod's compatibility with other mods.

 

If you want recipes to have several variants, you should just type out the variant recipes. Instead of merging item types.

Link to comment
Share on other sites

Well, like Draco's said. If you overload the same varItemStack then you're taking compatibility away from mods that may use the same names. You're example of sticks makes me immediately think of Tinkerer's Construct.

 

The more items you add to a single name greatly diminishes your mod's compatibility with other mods.

 

If you want recipes to have several variants, you should just type out the variant recipes. Instead of merging item types.

 

The idea was to find an easier way to add more than 500 without write one line of code per recipe, for example using

for(int x = 0; x < 6; ++x)

(becasuse I have some metadata items)

but if I use that, I will get the problem I mentioned above... (first post)

 

So hava somebody any other solution?

Link to comment
Share on other sites

I guess what i was trying to say is that you could write a loop for all similar recipes that use different item types. If I understand the question correctly, couldn't you put all the like-materials into an array and just increment through it as you increment through the nested loop?

 

Edit: After re-reading your post, I think this is what you're already attempting.

Link to comment
Share on other sites

Hi

 

If I understand your code right, this fragment here

for(int a = 0; a < 6; ++a){
for(int b = 0; b < 6; ++b){
for(int c = 0; c < 6; ++c){
for(int d = 0; d < 6; ++d){
for(int e = 0; e < 6; ++e){
for(int f = 0; f < 6; ++f){

 

will iterate a total of 6*6*6*6*6*6 = 46656 times

and you are adding a whole heap of recipes on every single iteration

 

You could perhaps change the code to just create each recipe once instead of thousands of times, but I think GotoLink's suggestion is a much better idea.

 

-TGG

 

 

 

Link to comment
Share on other sites

(becasuse I have some metadata items)

 

So hava somebody any other solution?

 

OreDict recipes.

 

GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(whatevs), " r ", " s ", "   ", 's', "stone", 'r', new ItemStack(Item.redstone)));

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • Depo 25 Bonus 25 | Deposit 25 Bonus 25 To 3x | Deposit 25 Bonus 25 To 5x | Deposit 25k Bonus 25k To Kecil | Deposit 25k Bonus 25k To Kecil | Deposit 20 Bonus 20 To 4x | Deposit 25 Bonus 30 To 5x | Deposit 30 Bonus 30 To 7x | Deposit 50 Bonus 50 To 3x | Deposit 50 Bonus 50 To 2x | Deposit 50k Bonus 50k To Kecil | Deposit 50k Bonus 50k To Kecil | Deposit 100k Bonus 100k To x7 | Deposit 100 Bonus 100 To x8 | Bonus 100% To x10 | Bonus New Member 100% To Kecil | Bonus Deposit 100% To Kecil DAFTAR KLIK DI SINI  https://umpo.ac.id/assets/css/pages/-/depo-25-bonus-25/ DAFTAR KLIK DI SINI  http://seminarmajlisdekan.upsi.edu.my/depo25/ Depo 50 Bonus 50 To 3x bisa kalian jumpai Situs Judi Slot Online Bonus New Member 100 To 5x Di Awal 50% 150% 200% 300% 500% Depan Syarat Turn Over 1x 2x 3x 4x 6x 7x 8x 10x 15x Kecil. Daftar Login Agen Bo Link Alternatif Situs Slot Gacor Bonus New Member 100 DI Awal Promo Terbesar & Terbaru Di Indonesia 2022 sekaligus agen judi online resmi di Indonesia menyediakan permainan judi online deposit uang asli 24 jam dengan hadiah terbaik melalui situs slot bonus 100 to 3x deposit 50 bonus 50 to kecil tanpa to bebas ip semuanya.Situs judi slot online24jam terpercaya sekalian agen judi slot online terpercaya 2022 Gampang berhasil mempunyai berkas daftar julukan situs judi slot bonus 100 TO 7x yg gampang sekali buat dimenangkan. Tidak hanya Gampang Dimenangkan Pasti Selaku situs judi slot online mudah berhasil bonus new member 100 to 5x Mempunyai Pasangan Pas Ialah Slot Promo Dengan Game Slot Gampang Berhasil.Jadi situs judi slot online gampang berhasil deposit pulsa tanpa potongan pula membagikan keringanan dalam melaksanakan du depositit asli lewat pulsa. Kalian dapat bermain slot deposit minimun 10 rb yg salah satu taruhan taruhan terkecil serta paling murah. jadi dengan taruhan deposit kecil pulsa tanpa potongan serta memainkan game slot Gampang jackpot ditambah promo bonus slot member baru 100, hingga profit di depan mata kalian. Selanjutnya ini ialah berkas 20 daftar julukan julukan slot online mudah berhasil yg sesuai buat kalian selaku pendatang baru dengan memakai bonus slot member baru 100 di awal. Jadi situs judi slot online gampang berhasil deposit pulsa tanpa potongan pula membagikan keringanan dalam melaksanakan deposit duit asli lewat pulsa. Kalian dapat bermain slot deposit minimun 10 rb yg salah satu taruhan taruhan terkecil serta paling murah. jadi dengan taruhan deposit kecil pulsa tanpa potongan serta memainkan game slot Gampang jackpot ditambah promo bonus slot member baru 100, hingga profit di depan mata kalian. Selanjutnya ini ialah berkas 20 daftar julukan julukan slot online mudah berhasil yg sesuai buat kalian selaku pendatang baru dengan memakai bonus slot member baru 100 di awal. Jadi situs judi slot online gampang berhasil deposit pulsa tanpa potongan pula membagikan keringanan dalam melaksanakan deposit duit asli lewat pulsa. Kalian dapat bermain slot deposit minimun 10 rb yg salah satu taruhan taruhan terkecil serta paling murah. jadi dengan taruhan deposit kecil pulsa tanpa potongan serta memainkan game slot Gampang jackpot ditambah promo bonus slot member baru 100, hingga profit di depan mata kalian. Selanjutnya ini ialah berkas 20 daftar julukan julukan slot online mudah berhasil yg sesuai buat kalian selaku pendatang baru dengan memakai bonus slot member baru 100 di awal. jadi dengan taruhan deposit kecil pulsa tanpa potongan serta memainkan game slot Gampang jackpot ditambah promo bonus slot member baru 100, hingga profit di depan mata kalian. Selanjutnya ini ialah berkas 20 daftar julukan julukan slot online mudah berhasil yg sesuai buat kalian selaku pendatang baru dengan memakai bonus slot member baru 100 di awal. jadi dengan taruhan deposit kecil pulsa tanpa potongan serta memainkan game slot Gampang jackpot ditambah promo bonus slot member baru 100, hingga profit di depan mata kalian. Selanjutnya ini ialah berkas 20 daftar julukan julukan slot online mudah berhasil yg sesuai buat kalian selaku pendatang baru dengan memakai bonus slot member baru 100 di awal. Slot Bonus 100 Di Depan To 3x merupakan Daftar promo member baru bonus di depan Situs Slot Bonus New Member 100 di Awal Depan taruhan lewat Handphone yang mampu bertaruh di situs slot online paling baik 2022. Tidak hanya taruhan Judi Slot Online, Kamu mampu bermain permainan olahraga, poker dan juga live casino. Slot Bonus New Member 100% Di Awal TO 3x 5x 7x 10x 15x terakhir Dikala selesai mendaftar di slot terakhir 2022 bonus new member gacor Kamu akan segera mendapatkan bonus new member 100% (slot game). https://www.jagannathuniversity.org/assets/css/-/mposlot/ https://www.jagannathuniversity.org/assets/css/-/XLSLOT/ https://www.jagannathuniversity.org/assets/css/-/slot-5000/ https://www.jagannathuniversity.org/assets/css/-/slot77/ https://www.jagannathuniversity.org/assets/css/-/kuda338/
    • Slot Bonus New Member 100 Di Awal To Rendah   ⚡️ KLIK DAFTAR BONUS NEW MEMBER 100 DI AWAL ⚡️ ⚡️ LINK SLOT GACOR BONUS NEW MEMBER 100 DI DEPAN ⚡️     Slot Bonus 100 Situs Slot Online Gacor Bonus New Member 100 Di Awal Slot Bonus 100 adalah permainan di slot online gacor dengan winrate tembus 99% menggunakan akun pro. Kami adalah situs Slot Bonus 100 yang menghadirkan semua permainan slot terbaik di Asia. Semua member diberikan pelayanan maximal serta CS yang selalu siap 24 jam. Itulah mengapa, banyak member lama yang masih bermain di situs kami. Bagi yang mencari Slot Bonus 100 super gacor, Situs kami adalah tempatnya. Jangan bingung karena kami selalu memberikan RTP terbaru agar tahu kapan waktu yang tepat untuk main dan bisa WD sampai puluhan juta rupiah. Ratusan pemain mengenal kami sebagai situs Slot Bonus 100 No 1 karena kami mempermudah pemain untuk mendapatkan maxwin. Winrate ditingkatkan sampai di atas rata-rata. Bagi yang ingin mendapatkan pola, bisa mencoba dulu bermain demo slot gacor di situs Slot Bonus 100 terbaik 2024 ini. Pemain yang daftar dan main hari ini lewat link Slot Bonus 100, dikasih jaminan 100% menang.
    • Hello, for educational purpose I am trying to port a mod from 1.20.1 to 1.20.2+ but I can't understand how the new networking system works. I manage to get through it for the most part, but I'm stuck on how to register packets. The previous method was: INSTANCE.registerMessage(id++, CPExecuteSkill.class, CPExecuteSkill::toBytes, CPExecuteSkill::fromBytes, CPExecuteSkill::handle); with instance being of type SimpleChannel.  (The forge document is not up to date for this part unfortunatly) Any help or clear documentation would be welcome.
    • ☾☾ KLIK DAFTAR DI SINI ☽☽ ☾☾ KLIK DAFTAR DI SINI ☽☽ ☾☾ KLIK DAFTAR DI SINI ☽☽   SLOT BANK MANDIRI merupakan situs daftar bandar judol yang deposit menggunakan bank mandiri hanya 1menit Langsung masuk di dalam akun anda. SLOT BANK MANDIRI menyediakan berbagai macam game slot online terlengkap provider termasuk daftar deposit via bank mandiri dan semua game slot gacor maxwin terbaru 2024.    
    • Selamat datang di TOTO88 salah satu situs slot gacor gampang menang hari ini di Indonesia yang sangat menjajikan. Slot gacor adalah adalah suatu istilah yang digunakan untuk menjelaskan sebuah permainan slot gampang menang di situs slot online. Situs slot gacor TOTO88 ini bisa menjadi populer walaupun terbilang baru karena RTP slot online yang disajikan begitu tinggi. Seiring dengan perkembangan zaman situs slot gacor terbaru ini juga sudah update dari segi teknologi yang menggunakan HTML5, inilah yang membuat grafis permainan terlihat begitu modern, audio lebih jernih, dan user interface yang smooth. Tidak dipungkiri grafis yang kami memiliki sudah menarik banyak sekali pendatang baru yang ingin merasakan terbawa dalam suasana tema permainan mesin slot. Kehadiran slot gacor menjadi angin segar bagi para pecinta judi online, memberikan alternatif permainan yang seru dan menguntungkan. Tak heran jika popularitas slot gacor terus meningkat, menarik minat para pemain baru untuk mencoba peruntungan mereka di situs slot gacor hari ini TOTO88.
  • Topics

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.