[SOLVED] How to add cooldown on a procedure

Started by ClOud1076 on

Topic category: Help with Minecraft modding (Java Edition)

Joined Mar 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
[SOLVED] How to add cooldown on a procedure
Thu, 01/13/2022 - 01:47 (edited)

So I have a weapon that has a skill set, you can cycle skills by pressing a keybind and to activate the skill you need to right click the weapon. I'm aware that there's a cool down for items but it's not what I want, I want the skill to be in cooldown when I activate it and not the item

Edited by ClOud1076 on Thu, 01/13/2022 - 01:47
Joined Aug 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
you could try setting a nbt…
Tue, 12/28/2021 - 17:10

you could try setting a nbt of the player to something, then wait a amount of ticks then set it back, so if the nbt is true you can use the skill but if its false you cant

Joined Mar 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
i forgot to add one thing,…
Wed, 12/29/2021 - 07:27

i forgot to add one thing, there are multiple skills in a weapon, what i want is if i activate skill 1 it will be in cooldown and skill 2 shouldnt be in cooldown unless i activate it. ill show a procedure of how the procedure works.

the procedure

Joined Mar 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Not necessary variables,…
Wed, 12/29/2021 - 09:37

Not necessary variables, best cooldown procedures are done by using NBT procedures

Joined Mar 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
can you show me how
Wed, 12/29/2021 - 11:15

can you show me how

Joined Mar 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
nevermind, i found out,…
Thu, 12/30/2021 - 05:19

nevermind, i found out, thanks for your help anyways. if anyone wants the procedure its this.

the cd procedure

Joined Mar 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Also procedure was made by…
Sun, 01/02/2022 - 14:32

Also procedure was made by cursed warrior I followed his tutorial in YouTube. Without his tutorials this wouldn't be possible

Joined Oct 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Hi !  I want make the…
Tue, 10/25/2022 - 15:47

Hi ! 

I want make the similar thing but with invocations. I started Mcreator just two weeks ago. Can you explain me your procedure and/or send me the link of the video of Cursed Warrior plz (he have so many videos, I do not find them ^^).

Thanks

Joined Mar 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I used this method too, but…
Tue, 03/14/2023 - 16:16

I used this method too, but if you drop the item and equip it again while it's on cooldown, you won't be able to use the ability again. Did you find a solution to this?

Joined Mar 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I used this method too, but…
Thu, 04/13/2023 - 14:04

I used this method too, but if you drop the item and equip it again while it's on cooldown, you won't be able to use the ability again. Did you find a solution to this?

I can't actually find a good solution, but a workaround, I couldn't remember the exact procedure but i made it so that when the player shifts and right click the item it will remove the cooldown

Joined Oct 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I recomend using global…
Thu, 12/28/2023 - 15:28

I recomend using global player varriables, NBTs are not working great now