Posted July 29, 201411 yr public static void InitRecipes(){ ItemStack itemRedstonePickaxe; ItemStack itemRedstoneAxe; ItemStack itemRedstoneShovel; ItemStack itemRedstoneSword; ItemStack itemRedstoneHoe; itemRedstonePickaxe = new ItemStack(redstonePickaxe); itemRedstonePickaxe.addEnchantment(Enchantment.efficiency, 3); itemRedstoneAxe = new ItemStack(redstoneAxe); itemRedstoneAxe.addEnchantment(Enchantment.efficiency, 3); itemRedstoneShovel = new ItemStack(redstoneShovel); itemRedstoneShovel.addEnchantment(Enchantment.efficiency, 3); itemRedstoneSword = new ItemStack(redstoneSword); itemRedstoneSword.addEnchantment(Enchantment.sharpness, 3); itemRedstoneHoe = new ItemStack(redstoneHoe); itemRedstoneHoe.addEnchantment(Enchantment.unbreaking, 3); ItemStack sticks = new ItemStack(net.minecraft.init.Items.stick); ItemStack redstone = new ItemStack(net.minecraft.init.Items.redstone); GameRegistry.addRecipe(itemRedstonePickaxe, new Object[]{"xxx", " y ", " y ", 'x', redstone, 'y', sticks}); GameRegistry.addRecipe(itemRedstoneAxe, new Object[]{" xx", " yx", " y ", 'x', redstone, 'y', sticks}); GameRegistry.addRecipe(itemRedstoneAxe, new Object[]{"xx ", "xy", " y ", 'x', redstone, 'y', sticks}); GameRegistry.addRecipe(itemRedstoneShovel, new Object[]{" x ", " y ", " y ", 'x', redstone, 'y', sticks}); GameRegistry.addRecipe(itemRedstoneSword, new Object[]{" x ", " x ", " y ", 'x', redstone, 'y', sticks}); GameRegistry.addRecipe(itemRedstoneHoe, new Object[]{" xx", " y ", " y ", 'x', redstone, 'y', sticks}); GameRegistry.addRecipe(itemRedstoneHoe, new Object[]{"xx ", " y ", " y ", 'x', redstone, 'y', sticks}); }
July 29, 201411 yr Author Ok, thanks i forgot i was making the sticks and redstone into ItemStacks insted of Items, it fixed it
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.