I needed a large 500×500 map/structure that I could generate in my world, but I didn’t want to manually place all the structure blocks myself.

So I made a system where I can select the map area and choose the size of the NBT chunks it gets split into. It can also generate jigsaw data inside the NBTs, so the structure can be implemented directly into worldgen. Alternatively, I can generate it without jigsaws and spawn it later using custom code.

This works, but I’m wondering if there’s a better or more efficient way to generate very large structures like this. Has anyone done something similar, or is there a recommended approach for handling large structures in worldgen?

by Cultural-Clerk6270

1 Comment

  1. weeabushido on

    Jigsaws have a maximum iteration depth and a maximum number of blocks from the center of the structure. The maximum distance from center of the structure is 128 blocks and the maximum depth of jigsaw recursion is 7 in java pre-1.21 and 20 in 1.21 and above (and in bedrock i believe).

    So you won’t be able to get to 500 x 500 with just one structure. I have played with the idea of essentially having 2 or more structures that have world gen settings that cause them to always be paired in location and then you could allow them to seem like one cohesive structure larger than 256 x 256 blocks, but I haven’t actually tried implementing yet.