How To Play A Custom Sound When You Right Click A Block?

Started by Danilo4573 on

Topic category: Help with modding (Java Edition)

Last seen on 18:35, 24. Jul 2024
Joined Jul 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How To Play A Custom Sound When You Right Click A Block?
Wed, 07/24/2024 - 17:28 (edited)

I am trying to make a skull block that play the meme guitar riff when right clicked but, i can't figure out how to use the procedure blocks to do it.

 

Edited by Danilo4573 on Wed, 07/24/2024 - 17:28
Last seen on 20:43, 20. Aug 2024
Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
First, import your custom…
Wed, 07/24/2024 - 17:32

First, import your custom sound. You need to use an OGG file, with a single mono track. (You can use an app like Audacity if you need to alter it.) 

Make your custom block element. Then go to the 'triggers' section. On the 'block right clicked' trigger, you want to make a new procedure. In that procedure, use the 'play sound' function to play the custom sound you imported earlier.

Last seen on 18:35, 24. Jul 2024
Joined Jul 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Okay i got the first  part…
Wed, 07/24/2024 - 18:24

Okay i got the first  part but, i don't understood the second one. Could you explain it to me like i am a five year old