[Solved]Adding Cooldown to Keybind

Started by xTremQuick on

Topic category: Help with MCreator software

Joined Jul 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
[Solved]Adding Cooldown to Keybind
Wed, 07/19/2023 - 20:42 (edited)

Hey there,

So Ive got a Keybind to strike lightning at the pressing of the r key. I dont want players to spam this, so I need a cooldown for this. I have no idea on how to add it, so are there any sugestions? tthanks in advance

Edited by xTremQuick on Wed, 07/19/2023 - 20:42
Joined Jan 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Thank you xTremQuick! That…
Sat, 02/01/2025 - 03:52

Thank you xTremQuick! That is exactly what I was looking for. I am really new to all this buut;
I used this to add absorption to a sword. I did run into a problem where the procedure wouldn't count down but I switched out "event/target entity" with "source entity" and it worked. I also used if "item in main hand of source entity" = "[custom sword]" logic to apply it only to the sword in hand. Now the sword has absorption, fires a projectile (with a separate cooldown), and is automatically enchanted when crafted XD