How to add cooldown to key bind? Help

Started by GreatttChill055 on Mon, 10/19/2020 - 07:03

Topic category: Help with MCreator software

Last seen on 12:23, 5. Nov 2020
Joined Oct 2020
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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
Last seen on 11:11, 30. Oct 2020
Joined Sep 2020
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
  Update to 2020.4, 1.12.2…
Mon, 10/19/2020 - 09:11

  Update to 2020.4, 1.12.2 generator is still supported.

Last seen on 12:23, 5. Nov 2020
Joined Oct 2020
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
thx
Mon, 10/19/2020 - 11:01

thx

Last seen on 11:11, 30. Oct 2020
Joined Sep 2020
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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: