Add that command to a command block attached to a light detector... change the coordinates to the same as where you have the jukebox and the 13 to the number disc you want to play.
or you could use the execute command to specify the jukebox's coordinates with a /playsound command.
After some testing, I have come to the conclusion that making a jukebox play via command blocks/redstone is not at all possible.
I consulted a friend of mine about the Blockdata command in regards to the jukebox and he confirmed that its not working with the jukebox as it should. I will see if maybe I can write up a bug report with mojang and see if they can look into it. They gave the jukebox the ability to be changed by using the /blockdata command so there is no reason this shouldnt work.. Much like giving the ability to change what is inside a chest or a hopper... All it seems to do with the jukebox is make it so the disc you tell it to have drops when you break the jukebox instead of it actually playing the disc... However "smoke and mirrors" will work here with the same desired effect using the execute command.
Rollback Post to RevisionRollBack
Creator of The Doomed Series! My Newest Map Is: Castle of Doom! Link: Here
Oh.
Well none the less after a few minutes fiddling with it, I still can't get it working, I'm guessing that playing music using a command block is completely impossible for now
Well first of all, you have to execute at an entity. "/execute @p -182 66 1042" Second, that's not the path to the sound you're trying to play. It's called "records.chirp", and third, you don't even need to use /execute...
pan>"/playsound's origin was changed in 1.8. By using only /playsound, the sound plays with the origin being at the command block, and the player selector is instead a means to define who hears it. You must use /execute in order to move the origin to that of the player. This change was made because beforehand, it was impossible to play a sound relative to an initiator"
That is why I said to use /execute...
Rollback Post to RevisionRollBack
Creator of The Doomed Series! My Newest Map Is: Castle of Doom! Link: Here
It's working now but is there a way to do it without the text poping up?
Thanks for the help everyone, I've learned something new.
One last question, is it possible to increase the area of of the music? I don't want it to be louder, I want it to cover more ground
You can disable chat output with:
/gamerule commandBlockOutput false
As for distance: the wording of the command syntax is a bit misleading. "Volume" in this case means the number of blocks outward that the sound can be heard. The value is multiplied by 16, so if you define the volume as 1, it will be heard up to 16 blocks away.
As for distance: the wording of the command syntax is a bit misleading. "Volume" in this case means the number of blocks outward that the sound can be heard. The value is multiplied by 16, so if you define the volume as 1, it will be heard up to 16 blocks away.
Ah I see, thank you so much, where in the line do I put this value?
I want to make a jukebox play the record in it every time the sun comes up, but I don't know how I would make it do such a thing.
Add that command to a command block attached to a light detector... change the coordinates to the same as where you have the jukebox and the 13 to the number disc you want to play.
or you could use the execute command to specify the jukebox's coordinates with a /playsound command.
Check out Lets Play awesomeness www.youtube.com/AricaraGames
Subscribe to my youtube channel! www.youtube.com/Darkjgaming
Edit: minecraft_own_minenash reminded that I forgot the "count" part, even it's still not working
/blockdata 0 70 0 {RecordItem:{id:record_(name of disk),Count:1}}
Check out Lets Play awesomeness www.youtube.com/AricaraGames
Subscribe to my youtube channel! www.youtube.com/Darkjgaming
Also you have to specify the sound name to play
Execute format is as follows
playsound is like this
so it should look like this
Check out Lets Play awesomeness www.youtube.com/AricaraGames
Subscribe to my youtube channel! www.youtube.com/Darkjgaming
I consulted a friend of mine about the Blockdata command in regards to the jukebox and he confirmed that its not working with the jukebox as it should. I will see if maybe I can write up a bug report with mojang and see if they can look into it. They gave the jukebox the ability to be changed by using the /blockdata command so there is no reason this shouldnt work.. Much like giving the ability to change what is inside a chest or a hopper... All it seems to do with the jukebox is make it so the disc you tell it to have drops when you break the jukebox instead of it actually playing the disc... However "smoke and mirrors" will work here with the same desired effect using the execute command.
Check out Lets Play awesomeness www.youtube.com/AricaraGames
Subscribe to my youtube channel! www.youtube.com/Darkjgaming
I don't understand what numbers I'm allowed to put here and what these effect
Oh.
Well none the less after a few minutes fiddling with it, I still can't get it working, I'm guessing that playing music using a command block is completely impossible for now
So use this:
That is why I said to use /execute...
Check out Lets Play awesomeness www.youtube.com/AricaraGames
Subscribe to my youtube channel! www.youtube.com/Darkjgaming
I was only referencing the command doc http://minecraft.gamepedia.com/Commands#playsound
But that doesn't seem to work anymore
execute @p -182 66 1042 /playsound records.chirp @a
You can add volume and pitch if you would like but they are optional.
Check out Lets Play awesomeness www.youtube.com/AricaraGames
Subscribe to my youtube channel! www.youtube.com/Darkjgaming
It's working now but is there a way to do it without the text poping up?
Thanks for the help everyone, I've learned something new.
One last question, is it possible to increase the area of of the music? I don't want it to be louder, I want it to cover more ground
You can disable chat output with:
As for distance: the wording of the command syntax is a bit misleading. "Volume" in this case means the number of blocks outward that the sound can be heard. The value is multiplied by 16, so if you define the volume as 1, it will be heard up to 16 blocks away.
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/
Ah I see, thank you so much, where in the line do I put this value?