mojira.dev
MC-96476

A jukebox summoned by a command block won't play any music. If you put the record in by hand everything works perfectly fine, but if you try to recreate that with a command block the game doesn't play the music.

A jukebox summoned by a command block won't play any music. If you put the record in by hand everything works perfectly fine, but if you try to recreate that with a command block the game doesn't play the music. I even tried using /clone to copy a jukebox, but didn't work either.

My command:
/setblock x y x jukebox 0 0 {RecordItem:{id:"minecraft:record_cat",Count:1b}}

I even tried to adjust some values like
/setblock x y x jukebox 1 0 {RecordItem:{id:"minecraft:record_cat",Count:1b}}

But nothing works. Also the only way to put in a record is with the hand, but I want to automate it (for a server)

Also, I'm using a resource pack changing the music file, but the music plays when I put in the record manually.

Comments 3

you can always just setblock and play the sound

there is nothing in the data that says play the disc, it plays when a player inserts it only. the set item doesn't say run me, it just says I'm the inserted item.

just like playing music, having it end, but not having the music disk get out afterwards

also your sintax is wrong
it's setblock x y z block data old_block_handling data_tag

The problem is when you play the sound and walk away, it'll go away. And if you play the sound too far away and then the player walks into this area, you still won't hear it. I just need a ways to hear the same sound all over the world.

well, the same happens for any other player when somebody inserts the disc, there's no diffrence

cpmct32

(Unassigned)

Unconfirmed

Minecraft 16w04a

Retrieved