How do I make a cooldown

Started by Plonx on

Topic category: Help with Minecraft modding (Java Edition)

Joined Sep 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How do I make a cooldown

So, I have a dash ability and a cooldown for it, however, I want a overlay/GUI to show the cooldown of the dash, I want it underneath the croshair, please help!

Joined Jul 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You'd make an overlay and…
Sat, 09/09/2023 - 01:59

You'd make an overlay and make sure it is set it to "Ingame" and have a conditional display like the first image attached, and the use the code in the second image in addition to whatever code you have to actually use the dash to turn on and off the overlay.

""""

Joined Sep 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
wait, if its alrigt, could…
Fri, 09/15/2023 - 09:28

wait, if its alrigt, could you make it a little more descritive, i dont quite understand.

 

Joined Jul 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
It's a little hard to…
Sat, 09/16/2023 - 01:31

It's a little hard to describe with words, so I made a workspace with basically everything in it. Just run the client, make a new world and see if this is what you want, and if so use the code for your mod. https://drive.google.com/drive/folders/1zbY9zwnkEWhdyuw9dsW0sjAs92VhiN4J?usp=sharing