#Make sounds audible from far away?

3 messages · Page 1 of 1 (latest)

uncut viper
#

I've noticed there's a cutoff for my sound at 16 blocks away from the player that it's played at.
The way I do it is this:
world.playSound((PlayerEntity)null, user.getX(), user.getY(), user.getZ(), ModSounds.GUNSHOT_MAKAROV, SoundCategory.PLAYERS, 1.0F, 1.0F / (world.getRandom().nextFloat() * 0.4F + 1.2F) - f * 0.5F + 1.0F);

verbal violet
#

you could add a mixin and override the scaling if it's one of your own mod sounds