It is now possible to play records with /playsound:
/playsound record.ward @a
However, the sound can be triggered multiple times (or other records could be played over it), resulting in a massive earache. Is there a way to stop a particular /playsound, or at least test if it is still playing?
If it is played through a command block, you can have a comparator output so that when it does the playsound, you get a signal. Idk, i'm not really good with command block logic. Hope this helped.
Rollback Post to RevisionRollBack
I have a small YouTube channel and would greatly appreciate it if you were to check me out!!
It is now possible to play records with /playsound:
/playsound record.ward @a
However, the sound can be triggered multiple times (or other records could be played over it), resulting in a massive earache. Is there a way to stop a particular /playsound, or at least test if it is still playing?
Unfortunately you cannot stop a sound from playing nor detect one currently playing, beyond Sarmachus' statement with detecting when a command block is successful in issuing the sound at the start.
It is now possible to play records with /playsound:
/playsound record.ward @a<br>
However, the sound can be triggered multiple times (or other records could be played over it), resulting in a massive earache. Is there a way to stop a particular /playsound, or at least test if it is still playing?
Unfortunately you cannot stop a sound from playing nor detect one currently playing, beyond Sarmachus' statement with detecting when a command block is successful in issuing the sound at the start.
Turns out, there is a way to do this!! EDIT: This method is now deprecated. See Skyliner's edit above.
It is now possible to play records with /playsound:
/playsound record.ward @a
However, the sound can be triggered multiple times (or other records could be played over it), resulting in a massive earache. Is there a way to stop a particular /playsound, or at least test if it is still playing?
Hey. I may have found a bit of an ugly work around. If someone has used the /playsound command to generate some sort of minecraft:record (music) effect on you (or if you did it to yourself like I did) then something you can do is go somewhere in your world that you're unlikely to get close to again (and if you ever do then you can repeat this process) and at this new location, *REPEAT* the command using your player name rather than @a (@a might work but I have not tested it). The annoying music should begin playing at this spot in the world and cease playing where it was or following you if that happened to be the case. Then you just have to avoid the new location of the music. Hope this helps
However, the sound can be triggered multiple times (or other records could be played over it), resulting in a massive earache. Is there a way to stop a particular /playsound, or at least test if it is still playing?
I have a small YouTube channel and would greatly appreciate it if you were to check me out!!
Unfortunately you cannot stop a sound from playing nor detect one currently playing, beyond Sarmachus' statement with detecting when a command block is successful in issuing the sound at the start.
2-year-later-edit: /stopsound has been added to 1.9.3: http://www.minecraftforum.net/forums/minecraft-discussion/redstone-discussion-and/command-blocks/2665151-small-psa-new-stopsound-command-in-1-9-3
Minecraft-things: http://skylinerw.com
More Minecraft-things: https://sourceblock.net
Guides for command-related features (eventually moving to Source Block): https://github.com/skylinerw/guides
I primarily hang out in the /r/MinecraftCommands discord, where there's a lot of people that help with commands: https://discord.gg/QAFXFtZ
Their corresponding subreddit: https://www.reddit.com/r/MinecraftCommands/
Turns out, there is a way to do this!!EDIT: This method is now deprecated. See Skyliner's edit above.I have a small YouTube channel and would greatly appreciate it if you were to check me out!!
Hey. I may have found a bit of an ugly work around. If someone has used the /playsound command to generate some sort of minecraft:record (music) effect on you (or if you did it to yourself like I did) then something you can do is go somewhere in your world that you're unlikely to get close to again (and if you ever do then you can repeat this process) and at this new location, *REPEAT* the command using your player name rather than @a (@a might work but I have not tested it). The annoying music should begin playing at this spot in the world and cease playing where it was or following you if that happened to be the case. Then you just have to avoid the new location of the music. Hope this helps