[SOLVED] How to add cooldown on a procedure

Started by ClOud1076 on

Topic category: Help with Minecraft modding (Java Edition)

Active 3 months ago
Joined Mar 2021
Points:
710

User statistics:

  • Modifications: 0
  • Forum topics: 21
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 113
[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
Active 11 months ago
Joined Aug 2021
Points:
617

User statistics:

  • Modifications: 0
  • Forum topics: 21
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 35
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

Active 3 months ago
Joined Mar 2021
Points:
710

User statistics:

  • Modifications: 0
  • Forum topics: 21
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 113
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

Active 2 months ago
Joined Mar 2021
Points:
989

User statistics:

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

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

Active 3 months ago
Joined Mar 2021
Points:
710

User statistics:

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

can you show me how

Active 3 months ago
Joined Mar 2021
Points:
710

User statistics:

  • Modifications: 0
  • Forum topics: 21
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 113
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

Active 3 months ago
Joined Mar 2021
Points:
710

User statistics:

  • Modifications: 0
  • Forum topics: 21
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 113
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

Active 2 years ago
Joined Oct 2022
Points:
288

User statistics:

  • Modifications: 0
  • Forum topics: 1
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 5
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

Active 9 months ago
Joined Mar 2023
Points:
204

User statistics:

  • Modifications: 0
  • Forum topics: 0
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 2
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?

Active 3 months ago
Joined Mar 2021
Points:
710

User statistics:

  • Modifications: 0
  • Forum topics: 21
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 113
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

Active 1 year ago
Joined Oct 2023
Points:
120

User statistics:

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

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