-
Posts
180 -
Joined
-
Last visited
Everything posted by SackCastellon
-
[1.6.4] [Solved] How to check if an entity is moving?
SackCastellon posted a topic in Modder Support
I want to know if there is any method like .isEntityMoving() or .getEntityVelocity() which return if the entity is moving or still. Is there some methor or not? Thanks for helping. -
I'm trying to do the following: If two blocks from my mod collide by one (or more) faces, then those faces, which collides, shouldn't be rendered. And i have the following problem: Those two block are one next to other and their top and bottom faces a colliding, but the don't become "invisible": https://dl.dropboxusercontent.com/u/184200482/img/side_error_1.png[/img] But if move the block above, (1 meter) up, then the top face of the lower block becomes invisible: https://dl.dropboxusercontent.com/u/184200482/img/side_error_2.png[/img] And if the block is "alone", the side renders correctly: https://dl.dropboxusercontent.com/u/184200482/img/side_error_3.png[/img] Here is my code @Override public boolean shouldSideBeRendered(IBlockAccess block, int x, int y, int z, int side) { // -Y if(side == 0 && isBlockACamouflage(block.getBlockId(x, y - 1, z))) { return false; } // +Y if(side == 1 && isBlockACamouflage(block.getBlockId(x, y + 1, z))) { return false; } // -Z if(side == 2) { return false; } else { return true; } } PS: isBlockACamouflage() only check is the block is one added my the mod or not Thanks for helping.
-
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
-
[1.6.4] Making a transparent block that gives out light.
SackCastellon replied to majesticmadman98's topic in Modder Support
The float value you gives on this.setLightValue(); is not equal to the light value of the block. The range is from 0.0F (0 light) to 1.0F (15 light) -
What on earth. I doubt you know what you are doing. It means if a, b, c, d, e and f are equal... You can also do this and get the same result. if(a == b && a == c && a == d && a == e && a == f) if a == b and a == c, you don't need to then check b == c. It's called the transitive property of mathematics. Ok, thank you very much. But coming back to the main topic, how can i fix the .addShapelessRecipe() problem?
-
RecipeLoader.class 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 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() { /* Blocks */ /* Items */ generic(); } private static void generic() { for(int a = 0; a < woodDamage.length; ++a) { GameRegistry.addShapelessRecipe(new ItemStack(Items.Soup, 1, a), new Object[] {new ItemStack(net.minecraft.init.Blocks.red_mushroom_block), new ItemStack(net.minecraft.init.Blocks.brown_mushroom_block), new ItemStack(Items.Bowl, 1, a)}); for(int b = 0; b < woodDamage.length; ++b) { for(int c = 0; c < woodDamage.length; ++c) { for(int d = 0; d < woodDamage.length; ++d) { for(int e = 0; e < woodDamage.length; ++e) { for(int f = 0; f < woodDamage.length; ++f) { /* Sticks */ 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[] {"P", "p", 'P', new ItemStack(net.minecraft.init.Blocks.planks, 1, woodDamage[a]), 'p', new ItemStack(net.minecraft.init.Blocks.planks, 1, woodDamage[b])}); } /* Doors */ if(a == b && a == c && a == d && a == e && a == f && b == c && b == d && b == e && b == f && c == d && b == e && b == f && d == e && b == f && e == 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])}); } /* Bowls */ if(a == b && a == c && b == 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])}); } } } } } } /* Mushroom Stew */ GameRegistry.addShapelessRecipe(new ItemStack(Items.Soup, 1, woodDamage[a]), new Object[] {new ItemStack(net.minecraft.init.Blocks.brown_mushroom_block), new ItemStack(net.minecraft.init.Blocks.red_mushroom_block), new ItemStack(Items.Bowl, 1, woodDamage[a])}); // GameRegistry.addRecipe(new ItemStack(Items.Arrow, 4, woodDamage[a]), new Object[] {"a", "b", "c", 'a', net.minecraft.init.Items.flint, 'b', new ItemStack(net.minecraft.init.Blocks.planks, 1, woodDamage[a]), 'c', net.minecraft.init.Items.feather}); } } } } The Main Class package SackCastellon.betterwood; import java.io.File; import SackCastellon.betterwood.handler.*; import SackCastellon.betterwood.loader.BlockLoader; import SackCastellon.betterwood.loader.BlockRegister; import SackCastellon.betterwood.loader.ItemLoader; import SackCastellon.betterwood.loader.ItemRegister; import SackCastellon.betterwood.loader.RecipeLoader; import SackCastellon.betterwood.loader.TabLoader; import SackCastellon.betterwood.proxy.CommonProxy; import SackCastellon.betterwood.reference.Reference; import SackCastellon.core.helper.LogHelper; import SackCastellon.core.helper.Version; import cpw.mods.fml.common.Mod; import cpw.mods.fml.common.Mod.EventHandler; import cpw.mods.fml.common.Mod.Instance; import cpw.mods.fml.common.SidedProxy; import cpw.mods.fml.common.event.FMLInitializationEvent; import cpw.mods.fml.common.event.FMLPostInitializationEvent; import cpw.mods.fml.common.event.FMLPreInitializationEvent; import cpw.mods.fml.common.registry.GameRegistry; @Mod(modid=Reference.ID, name=Reference.NAME, version=Reference.VERSION, dependencies=Reference.DEPENDENCIES) public class BetterWood { @Instance(Reference.ID) public static BetterWood instance; @SidedProxy(clientSide=Reference.CLPROXY, serverSide=Reference.CMPROXY) public static CommonProxy proxy; @EventHandler public void preInit(FMLPreInitializationEvent event) { ConfigHandler.loadConfig(new File(event.getModConfigurationDirectory(), Reference.ConfigPath)); if (ConfigHandler.CheckVersion == true) { Version.check(Reference.ID, Reference.NAME, Reference.VERSION, Reference.URL); } TabLoader.init(); // Items try { LogHelper.info(Reference.ID, "Loading items."); ItemLoader.init(); ItemRegister.init(); } catch(Exception e) { LogHelper.error(Reference.ID, "Could not load items"); } finally { LogHelper.info(Reference.ID, "Items succesfully loaded"); } // Blocks try { LogHelper.info(Reference.ID, "Loading blocks."); BlockLoader.init(); BlockRegister.init(); } catch(Exception e) { LogHelper.error(Reference.ID, "Could not load blocks"); } finally { LogHelper.info(Reference.ID, "Blocks succesfully loaded"); } } @EventHandler public void init(FMLInitializationEvent event) { // Recipes try { LogHelper.info(Reference.ID, "Loading recipes."); RecipeLoader.init(); GameRegistry.registerFuelHandler(new FuelHandler()); // TODO } catch(Exception e) { LogHelper.error(Reference.ID, "Could not load recipes"); } } @EventHandler public void postInit(FMLPostInitializationEvent event) {} }
-
I don't know why but the GameRegistry.addShapelessRecipe(); method doesn't work. Here is my code: public static void generic() { for(int a = 0; a < woodDamage.length; ++a) { GameRegistry.addShapelessRecipe(new ItemStack(Items.Soup, 1, a), new Object[] {new ItemStack(net.minecraft.init.Blocks.red_mushroom_block), new ItemStack(net.minecraft.init.Blocks.brown_mushroom_block), new ItemStack(Items.Bowl, 1, a)}); } } Thanks for helping!
-
I've followed the steps at Tutorial [1.6.2] Changing vanilla without editing base classes [coremods] and [events] very advanced! But when i run minecraft on eclipse a get this crash: [15:14:40] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLTweaker [15:14:40] [main/INFO] [LaunchWrapper]: Using primary tweak class name cpw.mods.fml.common.launcher.FMLTweaker [15:14:40] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLTweaker [15:14:40] [main/INFO] [FML]: Forge Mod Loader version 7.2.109.1022 for Minecraft 1.7.2 loading [15:14:40] [main/INFO] [FML]: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.7.0_25, running on Windows 7:amd64:6.1, installed at C:\Program Files\Java\jre7 [15:14:40] [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation [15:14:40] [main/INFO] [FML]: Found a command line coremod : SackCastellon.core.asm.FMLLoadingPlugin ********* getAccessTransformerClass. OK [15:14:40] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker [15:14:40] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLDeobfTweaker [15:14:40] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker [15:14:40] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker [15:14:40] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper [15:14:40] [main/ERROR] [FML]: The binary patch set is missing. Either you are in a development environment, or things are not going to work! [15:14:41] [main/ERROR] [FML]: The minecraft jar file:/C:/Users/Juanjo%20hijo/.gradle/caches/minecraft/net/minecraftforge/forge/1.7.2-10.12.0.1022/forgeSrc-1.7.2-10.12.0.1022.jar!/net/minecraft/client/ClientBrandRetriever.class appears to be corrupt! There has been CRITICAL TAMPERING WITH MINECRAFT, it is highly unlikely minecraft will work! STOP NOW, get a clean copy and try again! [15:14:41] [main/ERROR] [FML]: FML has been ordered to ignore the invalid or missing minecraft certificate. This is very likely to cause a problem! [15:14:41] [main/ERROR] [FML]: Technical information: ClientBrandRetriever was at jar:file:/C:/Users/Juanjo%20hijo/.gradle/caches/minecraft/net/minecraftforge/forge/1.7.2-10.12.0.1022/forgeSrc-1.7.2-10.12.0.1022.jar!/net/minecraft/client/ClientBrandRetriever.class, there were 0 certificates for it [15:14:41] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing [15:14:41] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper [15:14:41] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper ********* getASMTransformerClass. OK ********* getASMTransformerClass. OK ********* injectData. OK ********* getSetupClass. OK ********* getModContainerClass. OK [15:14:41] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLDeobfTweaker [15:14:42] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main} [15:14:43] [main/INFO]: Setting user: Player848 ********* PATCHING CLASS: net.minecraft.block.BlockEnchantmentTable [15:14:44] [main/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.NoClassDefFoundError: net/minecraft/block/BlockEnchantmentTable at net.minecraft.block.Block.func_149671_p(Block.java:325) ~[block.class:?] at net.minecraft.init.Bootstrap.func_151354_b(Bootstrap.java:457) ~[bootstrap.class:?] at net.minecraft.client.Minecraft.<init>(Minecraft.java:356) ~[Minecraft.class:?] at net.minecraft.client.main.Main.main(Main.java:89) ~[Main.class:?] ... 6 more Caused by: java.lang.ClassNotFoundException: net.minecraft.block.BlockEnchantmentTable at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:188) ~[launchwrapper-1.9.jar:?] at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.7.0_25] at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.7.0_25] at net.minecraft.block.Block.func_149671_p(Block.java:325) ~[block.class:?] at net.minecraft.init.Bootstrap.func_151354_b(Bootstrap.java:457) ~[bootstrap.class:?] at net.minecraft.client.Minecraft.<init>(Minecraft.java:356) ~[Minecraft.class:?] at net.minecraft.client.main.Main.main(Main.java:89) ~[Main.class:?] ... 6 more Caused by: java.lang.NullPointerException at SackCastellon.core.asm.ClassTransformer.patchClassInJar(ClassTransformer.java:49) ~[bin/:?] at SackCastellon.core.asm.ClassTransformer.transform(ClassTransformer.java:18) ~[bin/:?] at net.minecraft.launchwrapper.LaunchClassLoader.runTransformers(LaunchClassLoader.java:276) ~[launchwrapper-1.9.jar:?] at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:174) ~[launchwrapper-1.9.jar:?] at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.7.0_25] at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.7.0_25] at net.minecraft.block.Block.func_149671_p(Block.java:325) ~[block.class:?] at net.minecraft.init.Bootstrap.func_151354_b(Bootstrap.java:457) ~[bootstrap.class:?] at net.minecraft.client.Minecraft.<init>(Minecraft.java:356) ~[Minecraft.class:?] at net.minecraft.client.main.Main.main(Main.java:89) ~[Main.class:?] ... 6 more Here is the code: FMLLoadingPlugin.class package SackCastellon.core.asm; import java.io.File; import java.util.Map; import cpw.mods.fml.relauncher.IFMLLoadingPlugin; import cpw.mods.fml.relauncher.IFMLLoadingPlugin.MCVersion;; @MCVersion(value = "1.7.2") public class FMLLoadingPlugin implements IFMLLoadingPlugin { public static File location; @Override public String[] getASMTransformerClass() { System.out.println("********* getASMTransformerClass. OK"); return new String[] {"SackCastellon.core.asm.ClassTransformer"}; } @Override public String getModContainerClass() { System.out.println("********* getModContainerClass. OK"); return CoreDummyContainer.class.getName(); } @Override public String getSetupClass() { System.out.println("********* getSetupClass. OK"); // TODO Auto-generated method stub return null; } @Override public void injectData(Map<String, Object> data) { System.out.println("********* injectData. OK"); location = (File) data.get("coremodLocation"); } @Override public String getAccessTransformerClass() { System.out.println("********* getAccessTransformerClass. OK"); // TODO Auto-generated method stub return null; } } CoreDummyContainer.class package SackCastellon.core.asm; import java.util.Arrays; import com.google.common.eventbus.EventBus; import com.google.common.eventbus.Subscribe; import cpw.mods.fml.common.DummyModContainer; import cpw.mods.fml.common.LoadController; import cpw.mods.fml.common.ModMetadata; import cpw.mods.fml.common.event.FMLConstructionEvent; import cpw.mods.fml.common.event.FMLInitializationEvent; import cpw.mods.fml.common.event.FMLPostInitializationEvent; import cpw.mods.fml.common.event.FMLPreInitializationEvent; public class CoreDummyContainer extends DummyModContainer { public CoreDummyContainer() { super(new ModMetadata()); System.out.println("********* CoreDummyContainer. OK"); ModMetadata meta = getMetadata(); meta.modId = "CoreMod"; meta.name = "Core Mod"; meta.version = "1"; meta.credits = "Created by SackCastellon"; meta.authorList = Arrays.asList("SackCastellon"); meta.description = "An API that contain some common classes for all my mods"; meta.url = "http://www.minecraftforum.net/topic/1909056-/#core"; meta.updateUrl = ""; meta.screenshots = new String[0]; meta.logoFile = ""; } @Override public boolean registerBus(EventBus bus, LoadController controller) { System.out.println("********* registerBus. OK"); bus.register(this); return true; } @Subscribe public void modConstruction(FMLConstructionEvent event) {} @Subscribe public void preInit(FMLPreInitializationEvent event) {} @Subscribe public void load(FMLInitializationEvent event) {} @Subscribe public void postInit(FMLPostInitializationEvent event) {} } ClassTransformer.class package SackCastellon.core.asm; import java.io.File; import java.io.InputStream; import java.util.zip.ZipEntry; import java.util.zip.ZipFile; import net.minecraft.launchwrapper.IClassTransformer; public class ClassTransformer implements IClassTransformer { @Override public byte[] transform(String name, String transformedName, byte[] basicClass) { if (name.equals("aje") || name.equals("net.minecraft.block.BlockEnchantmentTable")) { System.out.println("********* PATCHING CLASS: " + name); basicClass = patchClassInJar(name, basicClass, name, FMLLoadingPlugin.location); } return basicClass; } private byte[] patchClassInJar(String name, byte[] basicClass, String ObfName, File location) { try { ZipFile zip = new ZipFile(location); ZipEntry entry = zip.getEntry(name.replace('.', '/') + ".class"); if (entry == null) { System.out.println("********* " + name + " not found in " + location.getName()); } else { InputStream zin = zip.getInputStream(entry); basicClass = new byte[(int) entry.getSize()]; zin.read(basicClass); zin.close(); System.out.println("********* Class " + name + " patched!"); } zip.close(); } catch (Exception e) { throw new RuntimeException("********* Error overriding " + name + " from " + location.getName(), e); } return basicClass; } } And finally the VM arguments:
-
I want to know how can i change the texture of a vanilla item without editing vanilla classes (or using texture packs), something like the Metallurgy Mod did with the vanilla tools' textures. Thanks for helping SOLUTION 1: Just create your new texture, rename it as it is at minecraft vanilla textures folder (eg: to change texture of a Iron Ingot rename the texture as iron_ingot.png) and then place your new texture at [yourForgeFolder]\src\main\resources\assets\minecraft\textures\[items or blocks]\iron_ingot.png SOLUTION 2: You just will need to type @EventHandler public void preInit(FMLPreInitializationEvent event) { Items.[vanillaItem].setTextureName("[yourModID]:[newTexture]"); }