Posted February 19, 20178 yr Hey guys, so im having a bit of trouble figuring out oreDictionary for smelting recipes, iv done this for crafting recipes: public static void addShapedRecipe(ItemStack output, Object... input){ GameRegistry.addRecipe(new ShapedOreRecipe(output, input)); } public static void addShapelessRecipe(ItemStack output, Object... input){ GameRegistry.addRecipe(new ShapelessOreRecipe(output, input)); } but i cant figure out how to do this for smelting recipes
February 19, 20178 yr Author Is there no way around it? someone suggested i do something like this: public static ItemStack getOreDict(String oreIdName) { List<ItemStack> res = OreDictionary.getOres(oreIdName); if (res != null) { ItemStack[] res2 = res.toArray(new ItemStack[res.size()]); for (int i = 0; i < res.size(); ++i) { return new ItemStack(res2[i].getItem()); } } return null; } thought id get some others opinions on 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.