The Meaning of Life, the Universe, and Everything.
Join Date:
7/26/2013
Posts:
60
Minecraft:
Leperthi
PSN:
xxR3MN3NTxx
Member Details
We're trying to play the disk "wait" in the desert via commandblock, and the closest we've come up with is either /summon or /playsound. Thing is, with either, I'm stumped. What exactly would the command be, and is it even possible?
We're trying to play the disk "wait" in the desert via commandblock, and the closest we've come up with is either /summon or /playsound. Thing is, with either, I'm stumped. What exactly would the command be, and is it even possible?
Neither command has the ability to play music files. The root folder for /playsound is .minecraft/assets/sound, while records are stored in .minecraft/assets/records. /setblocking only places a jukebox with the disc in it. Playing the sound from a jukebox is a user action and can't be automated.
Neither command has the ability to play music files. The root folder for /playsound is .minecraft/assets/sound, while music is stored in .minecraft/assets/music. /setblocking only places a jukebox with the disc in it. Playing the sound from a jukebox is a user action and can't be automated.
Huh...well, we did "/playsound records.wait @a ~ ~ ~ 10 1" and it seemed to play it...but the looping bit has caught us. We want it to loop, but we want it to stop playing when the player exits the radius hearing distance, and start up as soon as they enter it again.
(I blame myself on this one, because it was all my idea. :< )
Huh...well, we did "/playsound records.wait @a ~ ~ ~ 10 1" and it seemed to play it...but the looping bit has caught us. We want it to loop, but we want it to stop playing when the player exits the radius hearing distance, and start up as soon as they enter it again.
(I blame myself on this one, because it was all my idea. :< )
Oh my, didn't know the command was updated, don't see anything in changelog about it. This is good news; however, as far as I know you can't stop a sound from playing once it's started. Unless somebody knows some trick, I don't think you can do that. But thanks for the update on the sound playing!
So, like, have the first commandblock detect the radius of 64, have the second commandblock play records.wait, have a third detect a player exiting the radius, and have a fourth clear?
I haven't really messed with commandblocks lately until last night, so I'm a couple-hour-newb. But yeah...the third commandblock would use the same command as the first commandblock, so that it does the opposite function, correct? Or is that a completely different command?
Oh my, didn't know the command was updated, don't see anything in changelog about it. This is good news; however, as far as I know you can't stop a sound from playing once it's started. Unless somebody knows some trick, I don't think you can do that. But thanks for the update on the sound playing!
Yeah I tried it and I don't know a way to stop it. If you know a way please reply.
ok i know this is a old old thread but if u havent figured out how yet u can do /playsound records.wait @a[r=64] ~ ~ ~ 10 1 that will play it for all player in a radis of 64 blocks
I realize this is an old post, but I figured out how to do this. The problem with /playsound is that it plays the WHOLE song... and no repeats. So what I did is placed a hopper timer on a commandblock to do the /playsound command after the song's over (just time it. It shouldn't be too hard to get it to loop.) The hard part is getting it to shut off after you leave. Basically, the song will continue to play even after you've left the radius, so what I did is used a testfor command to check for the player within a radius, and when the player leaves, it stopps the TIMER. The song ends, but doesn't start again. Then when you enter the radius again, the timer starts, activating the song again. If you have multiple people entering and exiting the radius, this causes a terrible glitch though, so I used the /scoreboard to only stop the timer when EVERYBODY's left the radius.
Neither command has the ability to play music files. The root folder for /playsound is .minecraft/assets/sound, while records are stored in .minecraft/assets/records. /setblocking only places a jukebox with the disc in it. Playing the sound from a jukebox is a user action and can't be automated.
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/
(I blame myself on this one, because it was all my idea. :< )
Oh my, didn't know the command was updated, don't see anything in changelog about it. This is good news; however, as far as I know you can't stop a sound from playing once it's started. Unless somebody knows some trick, I don't think you can do that. But thanks for the update on the sound playing!
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/
I haven't really messed with commandblocks lately until last night, so I'm a couple-hour-newb. But yeah...the third commandblock would use the same command as the first commandblock, so that it does the opposite function, correct? Or is that a completely different command?
Sorry for all the questions. Still a novice. ^^'
Yeah I tried it and I don't know a way to stop it. If you know a way please reply.
ok i know this is a old old thread but if u havent figured out how yet u can do /playsound records.wait @a[r=64] ~ ~ ~ 10 1 that will play it for all player in a radis of 64 blocks
I realize this is an old post, but I figured out how to do this. The problem with /playsound is that it plays the WHOLE song... and no repeats. So what I did is placed a hopper timer on a commandblock to do the /playsound command after the song's over (just time it. It shouldn't be too hard to get it to loop.) The hard part is getting it to shut off after you leave. Basically, the song will continue to play even after you've left the radius, so what I did is used a testfor command to check for the player within a radius, and when the player leaves, it stopps the TIMER. The song ends, but doesn't start again. Then when you enter the radius again, the timer starts, activating the song again. If you have multiple people entering and exiting the radius, this causes a terrible glitch though, so I used the /scoreboard to only stop the timer when EVERYBODY's left the radius.
Hope this helps!!
Grahnath
as of 1.10 you can use /stopsound but 1.8 and below you have to turn sound off than back on
/playsound minecraft:music_disc.11 ambient @a ~ ~ ~ 100 1 1
this is the new updated command if anyone is still searching this
This command worked, thanks!
Thank you very much for the command. I've been trying to figure out how to get it to randomly play without fading out when the player walks anywhere