TelepathicGrunt / StructureTutorialMod

A short example showing how to register a structure and get it to generate in all biomes in NeoForge, Forge, and Fabric! (check the branches)
MIT License
264 stars 29 forks source link

Half-buried structures in 1.18.2 #19

Closed MadAlchemist closed 2 years ago

MadAlchemist commented 2 years ago

I am trying to add structure that has both underground and surface parts, but regardless of where was structure block placed initially - on top of structure, below it, or on ground level, structure always spawns with it's bottom on surface. So that instead of well with drowned spawner in it I am getting a weird tower filled with water. Is there any way to adjust structure placement, like it was done in 1.16.5?

TelepathicGrunt commented 2 years ago

In 1.18.2, split the structure into two parts. Top part for where you want the piece to rest on land. Bottom piece gets spawned by jigsaw block downward and thus, will spawn underground. The top piece will be the starting pieces

TelepathicGrunt commented 2 years ago

Basically similar to how I spawn my basement igloos in 1.18.2. https://github.com/TelepathicGrunt/RepurposedStructures/tree/1.18.2/src/main/resources/data/repurposed_structures/structures/igloos

https://github.com/TelepathicGrunt/RepurposedStructures/tree/1.18.2/src/main/resources/data/repurposed_structures/worldgen/template_pool/igloos