How do I include a cooldown?

Started by Jamesthefool on Wed, 07/11/2018 - 17:39

Topic category: Help with modding (Java Edition)

Last seen on 18:25, 19. Apr 2020
Joined Jul 2018
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
How do I include a cooldown?
Wed, 07/11/2018 - 17:39

Hi, so I'm makeing a JoJos bizzare adventure mod and I need to know how to put a cooldown on the items which give boosts and summon stands. I also want to know how to spawn a mob in for a limited amount of time.

If you know how to do it please tell me. Thanks

Last seen on 16:36, 9. Jul 2020
Joined Jul 2017
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
For the item with cooldown,…
Mon, 03/09/2020 - 23:27

For the item with cooldown, create a procedure when the item is right clicked in air, then go to item procedures, then drag and drop, "Cooldown current item for [100] ticks for provided entity".

20 ticks are in a second.

For the mob one, I think you can use a command output in some procedures that goes like this, /kill @e[type=creeper, r=1], which kills a creeper in the radius of one block. Additionally I'm 75% sure that /kill @e[type=Item,r=1] {Item:{id:minecraft_gunpowder}} works for gunpowder in a 1 block radius.

Last seen on 18:17, 23. Oct 2020
Joined Sep 2020
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Hey I'm trying to add a cool…
Wed, 10/21/2020 - 00:26

Hey I'm trying to add a cool down for the "player right clicks with item" procedure, any idea how I could do that?

Last seen on 02:48, 21. Oct 2020
Joined Oct 2020
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Write cooldown at search box…
Wed, 10/21/2020 - 02:11

Write cooldown at search box of prodecure. Also you can call other prodecures also can say on player tick update add +1 to player nbt tag also add a potion effect say get potion duration if it is 0 than do that ETC. Dammit use google