Need to limit the max length for structure piece/template pool from structure origin
Sorry for confusing title. I am creating a structure - a dungeon, that starts on the surface and goes underneath, with many corridors and rooms attached to those corridors. I want to limit the steps for corridors to generate, for example to have maximum of 4 corridor pieces one after another. But I can't just limit the "size" of my structure.json, because rooms attached to those corridors need several more steps to be crated.
The only way I could think of is creating many duplicates of my corridor pieces and create different template pool for each step, so corridor_1 piece will summon corridor_2 and so on. But this method will seriously bloat my datapack. Is there a more elegant solution for this problem?
I thought about "Pool aliases", but it says that "The redirections are determined before the generation starts" so I wouldn't be able to redirect pool template in another pool template. Is there some technique I don't know about?
It would be nice to disable template pool after certain amount of steps. Even better if there's a way to disable template pool after certain distance from the starting point.
Continue to help post