Each time the entity attack, a cooldown start so it cant attack

Started by Spayzers on

Topic category: Help with MCreator software

Last seen on 05:33, 13. Aug 2024
Joined Oct 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Each time the entity attack, a cooldown start so it cant attack

Im making a custom boss, that uses geckolib animations, i succeed with the damage procedure, but now i have a problem : whenever the boss get close to me, instead of attack once, then start the other attack, it just spams all the existing attacks as soon as he makes contact with the target.

 

What i want to make is, for every attack, a cooldown starts so the boss cant start any other attack untill the cooldown ends.

 

If you have any answers, please share with screenshots for easier understanding.

 

Thanks in advance.

Last seen on 11:33, 7. Sep 2024
Joined Apr 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Make an NBT tag that…
Thu, 07/25/2024 - 17:33

Make an NBT tag that increases by One every tick,then make It  so the boss can only Attack when the NBT tag Is like 100 and After the boss attacks It resets to 0