Posted September 29, 201311 yr How would I check when a potion effect that is on the player has ended. If I use myPotionEffect.duration == 0, it only works one time. After the potion effect is re-applied, the duration still reads 0.
September 29, 201311 yr Author Throgh numerous if's, else if's, and print statements, I am noticing that the entity.getActivePotionEffect(myPotion) returns null after the first time. I want to be able to check for my potion effect multiple times. Does it make any difference if my call to entity.getActivePotionEffect(myPotion) is in an Forge Hooks class that uses LivingUpdateEvent?
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.