Add a cooldown to a keybind.

Started by cracking on

Topic category: Help with modding (Java Edition)

Last seen on 22:41, 14. Oct 2022
Joined Jan 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Add a cooldown to a keybind.

Hello! I was wondering if it is possible to add a cooldown to a keybind. Please let me know if it is.

Last seen on 16:19, 27. Mar 2024
Joined Jul 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Can you please tell me what…
Mon, 06/14/2021 - 07:27

Can you please tell me what does your keybind do?

Yes, use either wait…
Mon, 06/14/2021 - 07:29

Yes, use either wait procedure or even better, use player variables to store cooldown value and then decrease cooldown on player tick global procedure trigger

Last seen on 22:41, 14. Oct 2022
Joined Jan 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Are there any videos on this…
Mon, 06/14/2021 - 19:09

Are there any videos on this? Or could you show me how?

Last seen on 22:41, 14. Oct 2022
Joined Jan 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Every 15 seconds it summons…
Mon, 06/14/2021 - 19:13

Every 15 seconds it summons 4 bolts of lightning (when the key "m" is pressed and a certain sword is held).

1 lightning bolt strikes at: x, y, z+5

Another lightning bolt strikes at: x, y, z-5 

The third one at: x+5, y, z

The final one at: x-5, y, z