How to add cooldown to key bind? Help

Started by GreatttChill055 on

Topic category: Help with MCreator software

Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to add cooldown to key bind? Help
Mon, 10/19/2020 - 07:05 (edited)
because I didn't find anything on the forum on this topic. I decided to apply here.

I am making a mod in which the player will be able to do "Bias to the side"
So, I implemented this same "Bias to the side" as follows: https://yadi.sk/i/1jr3Ee2b4a8-lg
After some tests, it turned out that sometimes the player has the ability to hold down the key that triggers "Side Dodge" and move very quickly.
After discovering this bug, I asked myself: "How can I make a cooldown to" Dodge to the side? ", But I still haven't answered it. Any thoughts on how to make a cooldown on key bind?
Edited by GreatttChill055 on Mon, 10/19/2020 - 07:05
Joined Sep 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I deleted my image because I…
Tue, 10/20/2020 - 06:31

I deleted my image because I didn't want to post it on Imgur without an account. There's the image again:

Joined Dec 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Doesn’t work, says provided…
Fri, 11/27/2020 - 22:06

Doesn’t work, says provided item stack variable doesn’t exist