mojira.dev
MC-272081

Snow golems can now create snow trails in any biome

Before the version 1.18, the snow golems are need to be in cold enough biomes to create snow trails, After 1.18 version, the snow golems can now create snow trail at any biome such as nether. This change has not been confirmed as intentional by Mojang.

Linked issues

Attachments

Comments 3

True. From Minecraft 1.18 onward, snow golems no longer check biome temperature when placing snow.

In 1.17 (Yarn mappings), snow placement required a cold biome:

BlockPos blockPos = new BlockPos(i, j, k);
if (this.world.getBlockState(blockPos).isAir()
    && this.world.getBiome(blockPos).getTemperature(blockPos) < 0.8F
    && blockState.canPlaceAt(this.world, blockPos)) {
    this.world.setBlockState(blockPos, blockState);
}

In 26.1snapshot1 (unobfuscated), for example, this check was removed:

BlockPos snowPos = new BlockPos(xx, yy, zz);
if (this.level().getBlockState(snowPos).isAir()
    && snow.canSurvive(this.level(), snowPos)) {
    this.level().setBlockAndUpdate(snowPos, snow);
    this.level().gameEvent(GameEvent.BLOCK_PLACE, snowPos, Context.of(this, snow));
}

That's why, snow golems are able to generate snow trails in any biome, including warm biomes and dimensions like the Nether.

4ebugger

(Unassigned)

Confirmed

Gameplay

Normal

Mob behaviour

1.18 Pre-release 6, 1.20.6, 24w20a, 24w21b, 1.21, 1.21.1, 24w34a, 24w35a

Retrieved