Posted August 8, 201411 yr The title says pretty much all, i want to add a recipe that uses food and any potion. I tried Iterator<Item> itItem = Item.itemRegistry.iterator(); while(itItem.hasNext()){ Item itemFood = itItem.next(); if(itemFood instanceof ItemFood){ GameRegistry.addShapelessRecipe(new ItemStack(itemFood), new ItemStack(((Item)Items.potionitem)), new ItemStack(itemFood)); } } But it only works with a water bottle. Any ideas how to make minecraft ignore the item damage? Here could be your advertisement!
August 8, 201411 yr new ItemStack(Items.potionitem, 1, OreDictionary.WILDCARD_VALUE) Use "OreDictionary.WILDCARD_VALUE" as your damage value.
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.