Hostile mobs use the 'Friendly Creatures' sound source
Chumbanotz opened this issue ยท 0 comments
The sounds of hostile Mowzie's mobs are controlled by the 'Friendly Creatures' sound slider instead of the 'Hostile Creatures' slider. The simplest solution is to override the getSoundCategory
method in MowzieEntity
like so:
public SoundCategory getSoundCategory() {
return this instanceof IMob ? SoundCategory.HOSTILE : SoundCategory.NEUTRAL;
}
In 1.17:
public SoundSource getSoundSource() {
return this instanceof Enemy ? SoundSource.HOSTILE : SoundSource.NEUTRAL;
}