Jump to content

Recommended Posts

Posted

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.