The bug
If you insert a music disc into a jukebox and quickly click it out again, the music will continue playing without the music disc actually being in the jukebox. In previous versions, when successfully reproduced, the following error would appear in the launcher log:
[media]How to reproduce
Get a jukebox.
Put any disc in.
Click as fast as you can to get the disc out.
→ ❌ Music continues to play without the music disc being in the jukebox
Linked issues
is duplicated by 74
relates to 3
Attachments
Comments 28
I think you clicked so fast that the game couldn't manage to state if you put in a disk when clicking or not so it just returned null at the stop function, as seen in the launcher error message.
Can be reproduced very easily by changing your controls settings so that you use a keyboard key instead of a mouse button for "Use/Interact".
You can replicate the glitch even easier by adding a dropper that puts the disc into the jukebox and as the last comment said putting a hopper minecart underneath, letting you automatically trigger the glitch every time. (Tested in 1.21.4)
Can confirm for 1.11.2
I had to try this multiple times (20+) to reproduce.
EDIT:
After testing with an auto-clicker I managed to reproduce this way faster. Even clicking the jukebox, giving it a block update or breaking the jukebox won't stop the music. When pressing escape the music stops but continues when going back to the game.
EDIT 2:
After quitting the world and reloading it, the music starts from the beginning. When the music has ended, the music just stops and no music disks are duplicated.
EDIT 3:
When clicking the jukebox with another music disk both sounds are played at once. This allows you to play 'an infinite' amount of disks at once.