[Tutorial] How to Make Ambient Music And Sounds For Your Mods!

Started by tazzan on

Topic category: User side tutorials

Joined Oct 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
[Tutorial] How to Make Ambient Music And Sounds For Your Mods!
Wed, 11/18/2020 - 03:58 (edited)

I've pondered how to make custom ambient sounds and music for my custom dimension for a while, so I decided to make it myself!

I've linked the procedures I've made so you can download them for yourself, I've also added comments to them if you're interested in learning how and why it works!

Have fun modding! http://www.mediafire.com/file/xrusor2sya8e6qh/ExampleAmbienceProcedires.zip/file

Pictures as well:

Edited by tazzan on Wed, 11/18/2020 - 03:58
Joined Oct 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I should add that you may…
Wed, 11/18/2020 - 03:50

I should add that you may need to edit the "Call Procedure" block in the Ambient Timer procedure to link to the Play Ambient Sound procedure, just because they may have unlinked if downloaded in the incorrect order or because of other loading issues

Joined Jul 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Just keep in mind that in…
Tue, 11/24/2020 - 01:12

Just keep in mind that in your Player Tick, the local AmbientTimer value shouldn't ever be greater than 1, as it is not saved between player ticks and only used in that one tick. You might want to use a global player-lifetime variable instead.

Also, I suggest you only play sounds on client-side, as server wide sounds can lag a bit, and there's a block in 'world data' to tell you if world is client-side or not.

Joined Mar 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
This doesn't work. Any ideas…
Mon, 03/15/2021 - 17:05

This doesn't work. Any ideas why?

Joined Oct 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I am interested in trying to…
Fri, 10/08/2021 - 06:18

I am interested in trying to do something similar. I am trying to get custom sounds to play for specific biomes. Using your example and adding an AND block so its checks dimension and biome. when it tries to run i get 

[Render thread/WARN] [minecraft/SoundEngine]: Unable to play empty soundEvent: minecraft:entity.salmon.ambient

or 

[Render thread/WARN] [minecraft/SoundEngine]: Unable to play empty soundEvent: minecraft:entity.cod.ambient

depending on the biome. 

in my workspace i have 1 procedure for timer for the biome and procedure call pointing to the biome sounds for the player. is there any additional information needed to be done other than changing the procedure call and picking the sounds i chose?

 

any help would be appreciated. 

Joined Jul 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Hello! I am making a Nuke…
Sat, 07/20/2024 - 23:42

Hello! I am making a Nuke item that is supposed to play a looping sound when you hold it. I followed the tutorial and it works fine, but there is one problem. When I hold out the item it waits until it reaches the time I set and THEN starts playing, but I want it to start as soon as I hold it. I'm not sure if this image will work but here is my code: