How make one item make a sound

Started by Lizardinthedeep on

Topic category: Help with modding (Java Edition)

Last seen on 00:19, 24. Jan 2024
Joined Jul 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How make one item make a sound

I cant figure out how to make an item play a sound using procedure blocks. everytime I do it the sound plays for every item you right click with. I need help figuring out how to right click with one item and make it use a sound and only work for that item using procedure blocks.

Last seen on 23:32, 16. May 2024
Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Use the 'When player right…
Thu, 07/27/2023 - 06:20

Use the 'When player right clicks with item' global trigger, then use an 'if' block to check if the provided itemstack is your custom item. Inside the if block, put the play-sound block. Alternatively, just make sure the procedure has no global trigger, and is only called when you right click with the custom item.

Last seen on 10:09, 14. May 2024
Joined Apr 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
u have image or an example…
Tue, 04/30/2024 - 04:12

u have image or an example for your idea ? cuz i dont understand the step "use an if......."