Music stopping when walking into the surface of a Pale Garden is completely intentional, but it also happens when the player is deep underground, which doesn’t seem like intentional behavior.
Steps to reproduce:
Go into a cave near, but not in a Pale Garden while music is playing (Must be naturally playing music. Cannot reproduce with the /playsound command.)
While still deep underground, show the F3 screen and go from the previous biome into “pale_garden”
Expected result:
Music still plays, because the player isn’t on the surface of the Pale Garden
Observed result:
Music stops, even though the player is in a cave.
Perhaps this could be fixed by taking into account whether the player is exposed to skylight. If the biome is the Pale Garden and the player is exposed to skylight, then music should stop as it already has been. But if the biome is the Pale Garden and the player isn’t exposed to skylight, then music should still play. This would be consistent with the new rain fog behavior.
Attachments
Comments 5

Well it's really hard to let a game judge whether you are “on the surface“ or not, because there is no clear definition. In other words, for example, are you under the surface if you place a block just above yourself. Therefore, Minecraft simply uses the biome to judge whether play music, which is effective and efficient method so that your computer wont lag or crash ⊙ω⊙
As I said in the description, this actually would be very easy for the game to judge: Skylight detection. It’s how the new rain fog is detected, and it’s also how many other things are already detected: Mobs burning, daylight sensors, rainfall, etc.
And to make it so you can’t just place a single block above you to prompt music to play, it could be if the skylight is at a certain level (like rain fog), rather than direct sunlight (like mobs burning).
This is not a valid bug. You are in a pale garden, therefore music should not play (as stated in the changelog):
Pale Garden
Pale Garden has no music and if a player enters the biome while music is playing, the music will fade out
I understand that the player is technically in a pale garden, but they are really not. I believe this was an oversight when adding this feature. It’s quite jarring to be walking around in a cave and hear the music go out. This was the point I was trying to make in this report, and I think this should be reopened.