If none of the previous criteria are met, but the player is in the Nether, a random general Nether track or a Nether biome-specific track plays, except warped forests, which don't have any music. If the player is underwater in an ocean or river biome, random underwater tracks play randomly 10 to 20 minutes after any currently playing tracks are finished.
If the player is in the End and the ender dragon has been defeated, the normal End track plays 5 to 20 minutes after any currently playing tracks are finished.
Both of these tracks start playing in place of any already playing music.
The song 'Alpha' always plays instantly during the credits, and the song 'Boss' always plays instantly while the player is in the End if the ender dragon is undefeated or resummoned. Some types of music are triggered by events, while others play randomly while certain criteria are met. Music tracks can play at various points during gameplay.