minecraft:biome_music for you with a switch.Get GodCraftOverview
minecraft:biome_music is a client biome component: it goes in the components object of a client biome file. Changes the music that plays while the player is in this biome.
Fields
| Field | Type | Default | Description |
|---|---|---|---|
volume_multiplier | number | none | Music volume in the biome, from 0 (silent) to 1 (full). It fades in smoothly. |
music_definition | Music Reference | none | Which music to play. Leave it out to use the dimension's music, or set it to an empty string for no music. |
underwater_music | boolean | false | When true, special music plays while the player is underwater. |
Example
Inside the components object of RP/biomes/<name>.client_biome.json (values are the defaults or placeholders):
RP/biomes/<name>.client_biome.json
{
"minecraft:biome_music": {
"volume_multiplier": 1,
"music_definition": {},
"underwater_music": false
}
}