Make sound when item hold

Started by KrzylakDuck on Sun, 05/22/2022 - 19:13

Topic category: Feature requests and ideas for MCreator

Last seen on 13:51, 11. Jun 2022
Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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
Last seen on 21:31, 26. Jun 2022
Joined Jul 2017
Points:

User statistics:

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

Last seen on 21:29, 27. Jun 2022
Joined Sep 2020
Points:

User statistics:

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