Posted April 24, 20169 yr For my resource dumper mod I'll need to add support for potions. In a previous iteration I had to hard code due to how horrendously bad potions were handled in 1.7. However now, potion sub types are handled through NBT tags and getting all the subtypes actually works properly now. But is there a way for getting the potion recipes yet? How do mods add custom potions? I like trains.
April 24, 20169 yr In 1.9, you can use ForgeRegistries.POTIONS. In 1.8.9 you want Potion.potionRegistry.
April 24, 20169 yr ForgeRegistries.POTIONS only stores the registered Potion s, e.g. Speed, Nausea, Haste. ForgeRegistries.POTION_TYPES stores the standard effects that can appear on potion items (e.g. Poison, Strong Poison, Long Poison), but potion items can also have any number of custom PotionEffect s on them. I suggest you look at JEI to see how it finds every possible vanilla and modded brewing recipe. Please don't PM me to ask for help. Asking your question in a public thread preserves it for people who are having the same problem in the future.
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.