How to make a right click procedure only work again when the procedure is done?

Started by Capuch on

Topic category: Help with MCreator software

Last seen on 16:38, 25. Nov 2021
Joined Nov 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to make a right click procedure only work again when the procedure is done?
Sun, 11/21/2021 - 00:21 (edited)

The title probably sounds, but I made an item that plays a certain song that's 3 minutes long when an item is right clicked, and when I spam click it, the song overlaps, so how can I make it so that it only plays the sound again after it's done playing the sound orignially?

Edited by Capuch on Sun, 11/21/2021 - 00:21
Last seen on 04:28, 26. Jan 2024
Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
wait blocks or nbt tags…
Sun, 11/21/2021 - 01:55

wait blocks or nbt tags depending if it's a block, if not global variables 

Last seen on 20:07, 9. Feb 2024
Joined Dec 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Hi, you could do that like…
Sun, 12/12/2021 - 14:59

Hi, you could do that like this:

Im sorry if the image doesn't work, but here it is: https://sta.sh/0g2e54bt0aj

Just name the NBT tag with any name and replace "Custom code snippet: UR ACTION" with whatever actions should be executed each time it is triggered, then attach it into a right-click trigger, it requires only the entity dependency.

You're welcome.

Last seen on 20:07, 9. Feb 2024
Joined Dec 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Should*
Sun, 12/12/2021 - 15:03

Should*