Summary: Structure pieces with terrain_matching projection generate on top of vegetation when chunks finish generating after being unloaded mid-structure
Game Version: 1.21.1 (reproduced on pure vanilla with no mods)
Category: World Generation
Description:
When a jigsaw structure that uses terrain_matching projection begins generating across multiple chunks, and the player moves away before all chunks have finished generating, the remaining chunks unload mid-structure. When the player later returns and those chunks finish generating, the terrain_matching structure pieces (such as village roads) are placed on top of vegetation (tall grass, flowers, ferns, etc.) instead of replacing it and snapping to the solid ground beneath.
This is incorrect behavior. In a normal single-session generation flow where all chunks generate without interruption, terrain_matching pieces correctly place at solid ground level, replacing any vegetation in their columns. The bug only manifests when chunk generation is interrupted by the player moving away or leaving the game, causing the remaining chunks to finish generating at a later point after the vegetation-inclusive heightmap has already been populated.
A workaround exists: deleting the affected chunks using a third-party chunk editor forces them to regenerate cleanly, which produces correct placement. This confirms the correct placement is calculable — the bug is in the heightmap being read at the wrong time during deferred generation, not in the structure data itself.
Important Note on Mod Involvement:
This bug was investigated extensively before being confirmed as vanilla. Testing was done progressively stripping back mods one by one, including removing Lithostitched (which overrides vanilla jigsaw generation as of its 1.3.5 changelog), Distant Horizons, C2ME, and all other mods entirely. The bug persisted at every stage of this process. Final confirmation was done on a completely unmodified vanilla 1.21.1 installation with no mods, no Fabric, and no Fabric API — just the vanilla jar. The bug reproduces reliably in this environment. This is not a mod conflict.
Steps to Reproduce:
Launch pure vanilla Minecraft 1.21.1 with no mods installed
Create a new world or use an existing one
Locate a village or any jigsaw structure that uses
terrain_matchingprojection pieces such as roadsApproach the structure close enough that generation begins, but do not fully reveal all chunks of the structure — the render distance edge should visibly cut through the middle of the structure
Walk away from the structure or save and quit the world before the remaining chunks have loaded and generated
Return to the structure in the same session or a new session and allow the remaining chunks to finish generating
Observe the newly generated
terrain_matchingpieces
Expected Result: terrain_matching structure pieces replace vegetation and snap flush to solid ground, consistent with pieces generated in a single uninterrupted session.
Actual Result: terrain_matching structure pieces are placed on top of vegetation — tall grass, flowers, ferns and similar — as if the heightmap query returned the top of the vegetation layer rather than the solid ground beneath it. The lower half of tall grass remains visible underneath the structure piece.
Workaround: Deleting the affected chunks using a third-party chunk editor such as NBTExplorer forces them to regenerate cleanly, correcting the placement. This workaround confirms the bug is in the timing of the heightmap query during deferred generation, not in the stored structure or chunk data.
Additional Notes:
This bug has no existing report on this tracker despite likely being present across multiple versions
The
_WGheightmap variants (e.g.WORLD_SURFACE_WG) used during worldgen are transient and are explicitly deleted after carvers run. When chunks finish generating their structure pieces after a session boundary or chunk reload, these heightmaps are no longer available. This may cause a fallback to a non-_WGheightmap type that includes vegetation in its calculation, producing the observed incorrect placementAffects all jigsaw structures using
terrain_matchingprojection, not just villagesThe bug is consistent and reproducible — it is not intermittent
I used claude to generate this detailed report. But its all accurate. I know this is an old version (1.21.1) But ive found zero related issues so I think it was best for me to report. Again, I use alot of mods, but ive stripped down all of them to find the culprit and even in vanilla it still caused this issue.
Environment
1.21.1
Attachments
Comments 2
Thank you for your report!
However, this issue is Invalid.
Your Minecraft version is outdated. We only take issues for the latest release and the latest snapshot.
Please update to the latest version as it includes the newest fixes. If you still have this problem after updating, then please create a new issue.
In case of a game crash, please also attach the crash report found in minecraft/crash-reports/crash-<DATE>-client.txt (see this page to learn more about how to find it).
Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support (Technical Issues) – 📧 Microsoft Support (Account Issues)
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki
Thank you for helping us improve Minecraft! We saved your files: