Make sound when item hold

Started by KrzylakDuck on

Topic category: Feature requests and ideas for MCreator

Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Make sound when item hold
Sun, 05/22/2022 - 19:15 (edited)

Hey, i want to make sparrow sounds when item is hold and it plays again when 1st track ended, but it constantly plays the same track. Someone know how to make it?

Sending picture below with current code.

https://cdn.discordapp.com/attachments/968978194420101162/9780132276004…

Edited by KrzylakDuck on Sun, 05/22/2022 - 19:15
Joined Jul 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
i can't see the picture by…
Thu, 06/02/2022 - 21:35

i can't see the picture

by the same track you mean you want it to be random?

you could probably use an NBT timer

Joined Sep 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
There is a problem playing a…
Sat, 06/04/2022 - 16:50

There is a problem playing a sound using this trigger, it ends up repeating the sound at least twice. I tried to do this in the mod I'm creating, it was to play only once, but every time the player selects the item.