Help with remaining cooldown percentage parameter

Started by grounded_dragon on

Topic category: Help with MCreator software

Last seen on 07:10, 20. Oct 2024
Joined Oct 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Help with remaining cooldown percentage parameter

I'm trying to add a feature that executes right before an entity is attacked where if the entity being attacked has also attacked within a recent enough timeframe the next code should trigger. My only problem is when I use:
   [ [Get remaining cooldown percentage of [Get item [Event/Target Entity] is using] for [Event/Target Entity] ] > 0 ]
It either never runs no matter what whether the player/entity has attacked recently, or if I include 0 in the remaining cooldown percentage it always runs no matter what. Any help would be greatly appreciated.