Cooldown not working for hit on enemy

Started by Char123456 on

Topic category: Help with modding (Java Edition)

Last seen on 01:19, 3. Jan 2024
Joined Dec 2023

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Cooldown not working for hit on enemy

Hello I am pretty new to coding with mcreator and im trying to make a sword that gives the wither effect to the enity that is hit with the sword. After that hit I would like a 15 second cooldown before the wither effect can be given again. If anyone can help that would be great thanks.


Here is a screenshot of my current nonworking code.