Guarantee a Main Entrance and a Boss Room in a dungeon

I am working on custom dungeon generation for a datapack, and after learning how jigsaws work, it seems you can only guarantee one room in the dungeon, which is the anchor room. However, I want to guarantee multiple rooms (Ex: An entrance, and a boss room(.

I have a few ideas, but I want to know if there's a potentially better way of doing this. Here's my idea:

  • Make a dungeon w/ jigsaws like normal

  • However, make special "main path" rooms that are identical to the other rooms but point to the next "depth" pool of main rooms

  • Make identical copies of each "main path" room except their jigsaw exits into the next "depth" pool

  • each "depth" pool is the same as the previous depth, except it just contains a pool of "main path" rooms that are from the next depth pool

  • The last depth that I have set will contain armor stands. Then, the datapack randomly picks one of the armor stands to use /place to spawn the boss room. The rotation depending on which direction the armor stand is facing.

How does my idea sound? Again, if there is a better way, i'd love to hear it. If not, then how can I improve on the idea I have currently?

Continue to help post