Started by
jupop777
on
Topic category: Help with Minecraft modding (Java Edition)
I'm making a block that plays a sound can someone tell me to make the sound stop when the block gets mined? TIA
Edited by jupop777 on Mon, 05/10/2021 - 19:19
I know that this is possible by using code, but I am not a code wizard myself.
Use a procedure to check when it's broken, then use the "execute command" block, and run this command...replacing any areas that need to be replaced to fit your needs: https://www.digminecraft.com/game_commands/stopsound_command.php.
The areas did not work, however, stopping all sounds did in fact turn it off without muting the entire world. Thank you.
Is there a way to make the music fade as you walk away? The block I am making seems to play the sound at the same volume no matter where you are in the world.
Make sure your ".ogg" sound file is in mono, not stereo.