How do I include a cooldown?

Started by Jamesthefool on

Topic category: Help with modding (Java Edition)

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

User statistics:

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

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 23:54, 2. May 2022
Joined Jul 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • 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 16:18, 30. Nov 2020
Joined Sep 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • 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
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • 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