Sword cooldown

Started by WilOl on

Topic category: User side tutorials

Joined Mar 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Sword cooldown

I have a sword that is supposed to restore health. I did it, but it can be hit without fail and still regain health. I don't understand how to make it so that health is not restored until it recharges, that is, until the sword indicator in the center of the screen is full. Please help me.

Joined Apr 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
 I don't know. I know how to…
Tue, 04/11/2023 - 17:34

 I don't know. I know how to make something happen if you have a certain amount of health though. maybe you could use durability but it would not be able to break...

Joined Feb 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
maybe with a variable which…
Thu, 05/04/2023 - 12:00

maybe with a variable which gets the value of the left time of the cooldown and if the vaöue of it is 0 use the normal procedure