Posted April 10, 201411 yr This has likely been suggested before but I couldn't find a recent topic on it. I've recently started to add custom potion effects to my game and currently the only way to do this is by using reflection to recreate the Potion.potionsTypes array, making it larger to fit in custom potion types. Using an entity update event handler for potion behaviour is nice and clean though, it's mostly just that final array, even an arrayList with a method that updates the array when the list changes would be fantastic. A registry of some sort where custom potion effects can be added with a class of some sort that handles potion effect ticks would be ideal as using reflection like this can cause conflicts with other mods that work with potion effects too.
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.