Description:
Relates to MC-244694.
Some sounds of goats aren't controlled by the "Friendly Creatures" sound slider and are instead controlled by the "Hostile Creatures" sound slider. These are:
mob.goat.horn_break
mob.goat.prepare_ram
mob.goat.prepare_ram.screamer
mob.goat.ram_impact
mob.goat.ram_impact.screamer
Steps to Reproduce:
Navigate to the Settings > Audio page
Turn the "Friendly Creatures" sound slider to "0%"
Turn every other sound slider to "100%"
Use the following commands:
/playsound mob.goat.horn_break @a
/playsound mob.goat.prepare_ram @a
/playsound mob.goat.prepare_ram.screamer @a
/playsound mob.goat.ram_impact @a
/playsound mob.goat.ram_impact.screamer @a
Observed Results:
These sounds aren't able to be heard, which means that they aren't controlled by the "Friendly Creatures".
Expected Results:
These sounds should be able to be heard.
Code analysis:
The sound definition of mob.goat.horn_break
from resource_packs/vanilla_1.19.0/sounds/sound_definitions.json
:
"mob.goat.horn_break": {
"category": "hostile",
"sounds": [
"sounds/mob/goat/horn_break1",
"sounds/mob/goat/horn_break2",
"sounds/mob/goat/horn_break3",
"sounds/mob/goat/horn_break4"
]
}
The sound definition of mob.goat.ram_impact
from resource_packs/vanilla_1.17.20/sounds/sound_definitions.json
:
"mob.goat.ram_impact": {
"category": "hostile",
"sounds": [
{
"name": "sounds/mob/goat/impact1",
"volume": 0.8
},
{
"name": "sounds/mob/goat/impact2",
"volume": 0.8
},
{
"name": "sounds/mob/goat/impact3",
"volume": 0.8
}
]
}
The sound definitions of the other three sounds from resource_packs/vanilla_1.17.0/sounds/sound_definitions.json
:
"mob.goat.prepare_ram": {
"category": "hostile",
"sounds": [
{
"name": "sounds/mob/goat/pre_ram1",
"volume": 0.8
},
{
"name": "sounds/mob/goat/pre_ram2",
"volume": 0.8
},
{
"name": "sounds/mob/goat/pre_ram3",
"volume": 0.8
},
{
"name": "sounds/mob/goat/pre_ram4",
"volume": 0.8
}
]
},
"mob.goat.prepare_ram.screamer": {
"category": "hostile",
"sounds": [
{
"name": "sounds/mob/goat/screaming_pre_ram1",
"volume": 0.8
},
{
"name": "sounds/mob/goat/screaming_pre_ram2",
"volume": 0.8
},
{
"name": "sounds/mob/goat/screaming_pre_ram3",
"volume": 0.8
},
{
"name": "sounds/mob/goat/screaming_pre_ram4",
"volume": 0.8
},
{
"name": "sounds/mob/goat/screaming_pre_ram5",
"volume": 0.8
}
]
},
"mob.goat.ram_impact.screamer": {
"category": "hostile",
"sounds": [
{
"name": "sounds/mob/goat/impact1",
"volume": 0.8
},
{
"name": "sounds/mob/goat/impact2",
"volume": 0.8
},
{
"name": "sounds/mob/goat/impact2",
"volume": 0.8
}
]
}
Can see that category
values of these sounds are hostile
, which means these sounds are controlled by the "Hostile Creatures" sound slider.
How to Fix
Changing category
values of these sounds from hostile
to neutral
will resolve this issue.
Can confirm.