Need Help With a Cooldown

Started by BuiltbyBricks on

Topic category: Help with MCreator software

Last seen on 20:20, 18. Aug 2020
Joined May 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Need Help With a Cooldown

So I have this mob where if you right click it gives you an item, the thing is I want it to have a cooldown. So when I right click it I have to wait __ amount of time till I can do it again. I've been trying to code it so it can do this but I am having trouble. Some help would be much appreciated!

Last seen on 21:21, 21. Feb 2021
Joined May 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
in the procedures there's a…
Sun, 07/05/2020 - 02:33

in the procedures there's a cooldown block in the item tab I believe. You need to set the procedure to occur when the item is used (or right clicked on air + ground)

Last seen on 00:03, 27. May 2022
Joined Jul 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
The entity should have a ON…
Sun, 07/05/2020 - 03:27

The entity should have a ON ENTITY TICK UPDATE TRIGGER 

and WHEN RIGHT CLICKED ON ENTITY.

in the Entity_Tick_Update you will see a EntityNBT called "CoolDownCounter" every 20 is 1 second. change it how you see fit.

Entity_Right_Clicked

https://www.photobox.co.uk/my/photo/full?photo_id=503094977153

Entity_Tick_Update

https://www.photobox.co.uk/my/photo/full?photo_id=503094977158

 

 

Last seen on 20:20, 18. Aug 2020
Joined May 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Ayeeh thanks for the help…
Sun, 07/05/2020 - 04:18

Ayeeh thanks for the help but the links don't send me were there supposed too. They just send me to the Photobox home page.

 

Last seen on 00:03, 27. May 2022
Joined Jul 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Entity_Tick_Update    …
Sun, 07/05/2020 - 06:55

Entity_Tick_Update

Entity_Tick_Update

 

 

Entity_right_clicked

Rightclicked

Last seen on 20:20, 18. Aug 2020
Joined May 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Thanks! It worked :D The…
Sun, 07/05/2020 - 13:48

Thanks! It worked :D The help is much appreciated!

Last seen on 20:20, 18. Aug 2020
Joined May 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Don't worry I got it figured…
Sun, 07/05/2020 - 13:49

Don't worry I got it figured out now, thanks for the reply though!

Last seen on 00:03, 27. May 2022
Joined Jul 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Happy to help
Sun, 07/05/2020 - 20:11

Happy to help