I'm using PotionUtils to use potions as a crafting ingredient, as follows:
ItemStack speedIIPotion = PotionUtils.addPotionToItemStack(new ItemStack(Items.POTIONITEM), PotionTypes.STRONG_SWIFTNESS);
'A', speedIIPotion, 'B', new ItemStack(Items.IRON_HELMET, 1, OreDictionary.WILDCARD_VALUE));
However, the crafting recipe will always accept any potion, regardless of what I set PotionTypes to. Can anyone help?
Check out my Youtube channel, where I build a theme park in vanilla Minecraft!
create a new IRecipe that is nbt-sensitive and register it using GameRegistry.register().
The default implementation ignores nbt data, which is used to determine potion effects.