This is a Minecraft mod that will allow you to set the music based on in game triggers
Here is a link to the curseforge project https://www.curseforge.com/minecraft/mc-mods/music-triggers
Alternatively, here is a link to the Modrinth project https://modrinth.com/mod/music-triggers
(Multiversion branch)