problems with sounds every tick

Started by mr_mckool on

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:
  • MCreator plugins:
  • Comments:
problems with sounds every tick

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 09:33, 25. Apr 2024
Joined Mar 2022
Points:

User statistics:

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