Jump to content

How to get a potion and its level?


AyyyyLmao

Recommended Posts

Hey,

Im trying to create a Damage Reduction Calculator so I can see how much damage my armor, potion effects and enchants are stopping, and I have everything so far I just dont know how to get just the resistance level I have.

I want to be able to just get the resistance effect's amplifier without having to create and iterator. Is there a way to do this?

Thanks.

Link to comment
Share on other sites

What you have against Iterators? :o

 

someLivingEntity.getActivePotionEffect(<thePotion>) gives you the potion effect which tells you everything about the potion, such as amount left, modifier, etc.

 

Nothing xD I just wanted to know if there was an easier way :P

But thanks :D

Link to comment
Share on other sites

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.



×
×
  • Create New...

Important Information

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