Add a cooldown to a keybind.

Started by cracking on Mon, 06/14/2021 - 04:05

Topic category: Help with modding (Java Edition)

Last seen on 03:32, 15. Jun 2021
Joined Jan 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Add a cooldown to a keybind.
Mon, 06/14/2021 - 04:05

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 11:36, 24. Jul 2021
Joined Jul 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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 03:32, 15. Jun 2021
Joined Jan 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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 03:32, 15. Jun 2021
Joined Jan 2021
Points:

User statistics:

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