Posted January 7, 201312 yr I have and ItemStack[26][] saying that 0-24 is the inputs and 25 is the output. package kore.mods.korecraft; import net.minecraft.block.Block; import net.minecraft.item.ItemStack; public class RecipesKoreTable { ItemStack[][] recipes = new ItemStack[26][]; private RecipesKoreTable() { this.addCrafting(new ItemStack(Korecraft.essenceExtractor), new ItemStack[] { new ItemStack(Block.cobblestone),new ItemStack(Block.cobblestone),new ItemStack(Block.cobblestone),new ItemStack(Block.cobblestone),new ItemStack(Block.cobblestone), new ItemStack(Block.cobblestone),new ItemStack(Block.cobblestone),new ItemStack(Block.cobblestone),new ItemStack(Block.cobblestone),new ItemStack(Block.cobblestone), new ItemStack(Block.cobblestone),new ItemStack(Block.cobblestone),new ItemStack(Block.cobblestone),new ItemStack(Block.cobblestone),new ItemStack(Block.cobblestone), new ItemStack(Block.cobblestone),new ItemStack(Block.cobblestone),new ItemStack(Block.cobblestone),new ItemStack(Block.cobblestone),new ItemStack(Block.cobblestone), new ItemStack(Block.cobblestone),new ItemStack(Block.cobblestone),new ItemStack(Block.cobblestone),new ItemStack(Block.cobblestone),new ItemStack(Block.cobblestone)}); } /** * A metadata sensitive version of adding a furnace recipe. */ public void addCrafting(ItemStack output, ItemStack[] input) { if(input.length==25){ int length = recipes.length; for(int i=0;i<25;i++){ recipes[length] = input; } recipes[25][length] = output; } } } The Korecraft Mod
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.