Why doesn't my potion effect go away

Started by dontaviusthethird on Tue, 11/08/2022 - 04:33

Topic category: Help with modding (Java Edition)

Last seen on 09:46, 25. Nov 2022
Joined Oct 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Why doesn't my potion effect go away
Tue, 11/08/2022 - 04:33

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:51, 27. Jan 2023
Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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 22:40, 26. Jan 2023
Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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.