How do i make a sound play

Started by Pedro Bcana on

Topic category: Help with MCreator software

Last seen on 23:21, 15. May 2023
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

Last seen on 20:25, 8. May 2020
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.

Last seen on 19:33, 18. Feb 2024
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