Don't know if anyone remembers the multilevel maze I built at my old Bazaar but I made a datapack that automates a bunch of variants on that structure. The latest one I added a skin based on a Moroccan ksar. Wrote an applescript that generated the maze based on a seeded random number and output the build functions to a bunch of mcfunction files. Maze datapack
Wrote a swift app (OSX) for this which is way faster than the applescript I originally used. https://github.com/VardogrVanDeLommer/MazeGenerator