minecraft:ambient_sounds for you with a switch.Get GodCraftOverview
minecraft:ambient_sounds is a client biome component: it goes in the components object of a client biome file. Sets the background sounds players hear in the biome. The sound names must be listed under individual_named_sounds in sounds.json.
Fields
| Field | Type | Default | Description |
|---|---|---|---|
addition | Sound Addition | {"asset":"","chance":1} | A sound that plays every so often around the player, with a chance per tick. |
loop | Sound Reference | "" | A sound that keeps looping while the player is in the biome. |
mood | Sound Reference | "" | A spooky sound that plays now and then in dark places. Without it, the normal cave sound is used. |
underwater_addition | Sound Addition | {"asset":"","chance":1} | A sound that plays every so often while the player is underwater. |
underwater_loop | Sound Reference | "" | A sound that keeps looping while the player is underwater in the biome. |
underwater_mood | Sound Reference | "" | A rare sound for dark water. Without it, the normal underwater loop is used. |
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:ambient_sounds": {
"addition": {
"asset": "",
"chance": 1
},
"loop": "",
"mood": "",
"underwater_addition": {
"asset": "",
"chance": 1
},
"underwater_loop": "",
"underwater_mood": ""
}
}