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

Started by Turkeybird07 on

Topic category: User side tutorials

Last seen on 17:37, 14. Nov 2023
Joined Nov 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • 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
Last seen on 16:34, 29. Dec 2023
Joined Feb 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I'm trying to make an effect…
Mon, 03/07/2022 - 19:40

I'm trying to make an effect that deals damage when you first get it, and applies slowness while the 'Frost' effect is active. Once the effect runs out and the recipient is 'thawed', they receive damage afterwards as well. The problem is, for some reason, the effect never lasts more than a millisecond. I don't even know why, it just does-

 

This is very vague, but pls halp mee :(