Trying to add a potion per tick but the potion doesn't work? Look here!

Started by Turkeybird07 on Sun, 01/24/2021 - 18:16

Topic category: User side tutorials

Last seen on 05:30, 4. Mar 2021
Joined Nov 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Trying to add a potion per tick but the potion doesn't work? Look here!
Sun, 01/24/2021 - 18:17 (edited)

You might come across this problem when you have a armor set that gives you regeneration per tick. It'll show you the potion, but it just won't work. There is actually a pretty simple fix for this. each time you tick the armor to add a potion effect, check if the player already has the potion effect. If they don't, give it to them. Then increase the time the potion is added for, and now it should work! I hoped this helps!

Edited by Turkeybird07 on Sun, 01/24/2021 - 18:17