Why doesn't my potion effect go away

Started by dontaviusthethird on

Topic category: Help with modding (Java Edition)

Last seen on 07:24, 12. Mar 2023
Joined Oct 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Why doesn't my potion effect go away

I made a projectile that gives the player a custom effect called slime blindness for 4 seconds but the effect will never go away unless the player has been killed. Why is this happening?

Last seen on 00:55, 28. Mar 2024
Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I've only had this problem…
Sat, 12/03/2022 - 18:44

I've only had this problem when dealing with randomized potion effects- whenever I attempted to randomize the type of potion effect applied, or add a percentage chance of an effect being applied, there were instances where the effect would not go away. (Or rather, the potion icon remained, even after the duration had worn off.) Are you using any randomization for your effect? 

Last seen on 19:18, 27. Mar 2024
Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
The randomization potion…
Fri, 12/16/2022 - 18:48

The randomization potion effect issue happens wiht me too. not sure why. This really messes me up alot, but im glad to know someone else is also having the same issue, and it isnt just my code.