Started by
tazzan
on
Topic category: User side tutorials
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
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
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.
This doesn't work. Any ideas why?
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.
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: