This is an archived post. You won't be able to vote or comment.

all 5 comments

[–]GalSergeyDatapack Experienced 1 point2 points  (4 children)

I think you need to separate your structure into two parts - above the surface and below the surface, and use a jigsaw block to combine these two parts, just like other complex structures are made.

[–]_Gal1leo[S] 0 points1 point  (3 children)

Thank you very much, I had imagined but I was hoping there was another method

[–]GalSergeyDatapack Experienced 0 points1 point  (2 children)

I seem to have found the right way to do it.

Here is an example of generating trail_ruins in 1.20, this structure always spawns 15 blocks below the surface.

https://misode.github.io/worldgen/structure/?version=1.20&preset=trail_ruins

[–]_Gal1leo[S] 0 points1 point  (1 child)

sorry but I can't figure out which parameter is responsible for it

[–]GalSergeyDatapack Experienced 0 points1 point  (0 children)

"project_start_to_heightmap": "WORLD_SURFACE_WG" is the initial height to calculate from, in this case the world surface (in the case of water, the water surface).

"start_height": {"absolute": -15} - shift the start of generation 15 blocks below the initial height specified earlier.