mojira.dev
MC-238904

Rain is silent in Frozen Oceans

in the non icy patches in the frozen ocean biome rain doesn't play any audio and is silent. I have footage if requested.

Linked issues

Attachments

Comments 11

it is not a duplicate as its an audio bug

Yup, it appears this issue is similar but not the same as MC-236652. I can confirm this.

Isn't the problem here that the rain doesn't make a sound when falling on water? When flying above land in rainy weather, also no sound is heard.

Can confirm in 1.18.1.

1 more comments

How is this still not fixed? It's been nearly a year and it's not even being worked on. It still exists in 1.19 and it's incredibly annoying, just ruins my iceberg base.

Can confirm in 1.19.1.

Code analysis (Mojang mappings, 1.19.2): in LevelRenderer#tickRain(Camera), there is the following piece of code:

...
            BlockPos $$10 = $$3.getHeightmapPos(Heightmap.Types.MOTION_BLOCKING, $$4.offset($$8, 0, $$9));
            Biome $$11 = $$3.getBiome($$10).value();
            if ($$10.getY() <= $$3.getMinBuildHeight() || $$10.getY() > $$4.getY() + 10 || $$10.getY() < $$4.getY() - 10 || $$11.getPrecipitation() != Biome.Precipitation.RAIN || !$$11.warmEnoughToRain($$10)) continue;
...

If the biome's precipitation is not RAIN (which frozen oceans are not), then the code to play the rain sound events is not executed. Changing this to

...
            BlockPos $$10 = $$3.getHeightmapPos(Heightmap.Types.MOTION_BLOCKING, $$4.offset($$8, 0, $$9));
            Biome $$11 = $$3.getBiome($$10).value();
            if ($$10.getY() <= $$3.getMinBuildHeight() || $$10.getY() > $$4.getY() + 10 || $$10.getY() < $$4.getY() - 10 || $$11.getPrecipitation() == Biome.Precipitation.NONE || !$$11.warmEnoughToRain($$10)) continue;
...

should fix the issue; there is no worry that the rain sounds would play in a snowy biome, because Biome#warmEnoughToRain(BlockPos) already does that: if it is not warm enough to rain, the sounds will not play.

Appears to be fixed for me in 23w03, most likely due to MC-255811 being fixed. Someone please double check.

Confirmed fixed in 23w03a.

RaptorMocha

(Unassigned)

Confirmed

Normal

Sound

frozen_ocean

1.17.1, 21w41a, 1.18 Pre-release 1, 1.18.1, 1.19, ..., 1.19.1 Pre-release 5, 1.19.1, 1.19.2, 22w42a, 22w43a

23w03a

Retrieved