help with weapon with potion effect cool down

Started by HVDES on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jul 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
help with weapon with potion effect cool down
Wed, 07/03/2024 - 18:49 (edited)

I created a weapon with the ability that, when your health drops to 50% or less, grants regeneration and strength for 5 seconds. However, the problem is that if I get hit again after it activates, it keeps reactivating with each hit. I want it to only activate once and then have a cooldown of at least 15 seconds.

Procedure:

https://imgur.com/a/0lrFX85

 

 

 

 

 

Edited by HVDES on Wed, 07/03/2024 - 18:49