Create

Create

86M Downloads

Jukeboxes attached to trains should take their sound with them.

philapple05 opened this issue ยท 6 comments

commented

Describe the Suggestion

Jukeboxes attached to trains can be activated before the train begins moving. As it stands, the sound of a music disc song will stay where the jukebox was activated, regardless of where the train it is affixed to now is. The sound emitter should follow the jukebox on the train.

Screenshots and Videos

No response

Additional Context

No response

commented

That is problematic with current sound engine. For instance, Jukeboxes aren't even movable in Bedrock edition.

commented

Wouldn't it be possible to threat the jukebox as an entity? What makes it different from the steam whistle?

commented

Minecraft's sound engine is not capable of handling moving sounds. Whistles are able to move because they are a 4 second sound file repeated while active, updating their origin with each repeat. Jukeboxes do not have the luxury of just looping a short sound file.

commented

But what about mobs? Not all entities do have 1 repetitive sound. Many come with a bunch of sounds they can choose from.
I'm not sure what needs to be done to get the jukebox sounds moving, but it is sure a challenge in itself...

commented

Mob sounds are short and only play at the spot the mob was at when the sound began to play. Getting any moving sounds in-game would require a complete rewrite of the sound engine, which would almost certainly break compatibility with any mod that has sounds

commented

It is possible to implement this. Look at this mod - https://www.9minecraft.net/sound-track-mod/
I'm trying to add jukebox to my elevator which plays when it moves. I stumbled upon the bug that the jukebox music stays at initial contraption location. However if I put cart from this mod inside my elevator and start music, the sound follows the contratraption as it should.