Cooldown for Items??

Started by Trason on Sat, 10/21/2017 - 14:40

Topic category: Advanced modding

Last seen on 22:34, 25. Nov 2017
Joined Oct 2017
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
Cooldown for Items??
Sat, 10/21/2017 - 14:40

Hey all i create a new healpot for my mod.

Now i want a cooldown for it

I want that a player can use the pot and must wait for 10 seconds for use again.

I found no way and i have no ideas of java code

Pls help me and sorry for my bad english....

Last seen on 17:09, 24. Aug 2018
Joined Feb 2017
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
I don't know how to make it
Sat, 10/21/2017 - 22:54

I don't know how to make it either. Usually, I just make it so right clicking damages the player so they don't spam it. The only problem is you can't do that with heal pots. Try checking with some other advanced modder's or see YouTube for maybe a string of Java or something. Thanks and best of regards, C.Awex