problems with sounds every tick

Started by mr_mckool on Mon, 10/31/2022 - 22:23

Topic category: Help with MCreator software

Last seen on 22:14, 14. Dec 2022
Joined Oct 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
problems with sounds every tick
Mon, 10/31/2022 - 22:23

I have a item which gives you strength will holding it but I also want it to play a sound every time you put it in you hand but what happens is it starts the sound every tick will holding it

how can I fix this problem

Last seen on 18:24, 26. Jan 2023
Joined Mar 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Hi, Try to set a variable…
Fri, 12/09/2022 - 20:49

Hi,

Try to set a variable. When your item start the sound, set your variable on "true".

Add this procedure :

If [var] = true

play the sound

when the sound stop, set the variable on "false"

Hope this will help you.