mojira.dev
MC-119599

Snow and ice remain below tree leaves which generate into existing chunks

The Bug

When terrain is being generated, sometimes snow will generate under trees instead of on top of them.

This happens because the snow is placed first in a chunk. When the rest of the chunk is decorated, a tree can generate elsewhere (such as a neighbouring chunk) that projects into the previously-decorated section. Result: snow ends up placed under the portion of the tree that projects over the older section and not on top of it. The borders of the misplaced snow are always aligned with the edge of the chunk. (Amended from earlier version: the original report stated that the behaviour occurred for 8×8 quarter-chunks; this is no longer happening.)

A similar effect can be seen in ice spikes biomes. Some patches of compressed ice are generated flush with the ground. Sometimes these generate partially covered in snow even though compressed ice is usually snow-free.

A suggested fix: add a sanity check for snow cover in newly-generated chunks, and adjust it as needed. (Move it to the tops of newly-generated trees, or remove it from newly-generated ice spikes.)

Steps to Reproduce

  • Locate and enter a biome that generates both snow and trees, for example, a "snowy_taiga".

  • Fly over the trees within this biome and take note as to whether or not if snow is sometimes able to generate below trees.

Observed Behavior

Snow sometimes generates below trees instead of on top of them.

Expected Behavior

Snow would always generate on top of trees instead of below them.

Linked issues

Attachments

Comments 22

Alternative fix suggestion: put snow on the ground and on leaves.

This will need to be retested for 18w15a due to the fix in that version for MC-125083 (New world generator doesn't generate snow on trees in snow biomes).

Reproduced in 1.13-pre5. See MC-125007 for an example.

Confirmed for 20w20b

Can confirm in 21w03a.

12 more comments

The description needs to be updated, this seems to only happen along chunk borders now, and @unknown was unable to reproduce the bit about ice patches.

@unknown requests ownership, but wants to ask the current owner of this ticket for their consent first. @@unknown please respond if that's okay with you. 🙂

If it's possible to take ownership of a ticket without changing the original reporter of the ticket, then I accept the request to change ownership. I use the "reported by" functionality to track my tickets.

Amended description to account for the effect occurring on chunk borders. Did not change the ice spikes behaviour because I have not observed this.

Unfortunately Jira doesn't have separate fields for reporter and owner (from what I can tell) so let's just leave you in charge of this.

You always remain the original reporter (called "creator" in Jira), but only the current owner of the issue (called "reporter" in Jira) can edit it.

bdm68

(Unassigned)

Confirmed

Platform

Low

World generation

Minecraft 1.12, Minecraft 1.12.1 Pre-Release 1, Minecraft 1.12.1, Minecraft 1.13-pre7, Minecraft 1.13, ..., 1.21.3, 25w04a, 1.21.5 Pre-release 2, 1.21.5, 25w19a

Retrieved