How do i make a sound play

Started by Pedro Bcana on

Topic category: Help with MCreator software

Joined Jul 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How do i make a sound play

How do i make a sound play once, and only play again if it happens again, example:break a block and then play a sound once

Joined Aug 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Create a new procedureā€¦
Sat, 08/31/2019 - 13:53

Create a new procedure. Under world management, find: "Play at x y z, level 1 pitch 1 sound NAMEOFSOUND".

 

Now your procedure has been created, go to your block (5th page). Pick the one that says "When block destroyed by player" and add the procedure you just created.

 

Now this block will play the sound you selected whenever the block is destroyed and voila.

If you haven't imported a sound yet, you won't be able to select the sound you want inside of your procedure so if that's the case, go to the "Resources" tab and press "Sound files". Now you can import your audio file in OGG format. If you have your soundfile in the wrong format, use an online converter to make it an OGG file first.

Joined Jun 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
What I do is I just renameā€¦
Fri, 06/02/2023 - 21:05

What I do is I just rename the file from .mp3 to .ogg and it worked