And yeah idk if you're trying to randomly generate rather than hand-design levels, that certainly adds an extra layer of coding complexity.
3D Mazes!

No never heard of it, just read the plot summary and it looks cool though.
The problem with the coding I feel like would be all the extra parameters, it has to generate the vertical pathways randomly between levels, while not opening up redundant routes leading to the correct route in the process. Like if your correct path you decided on involved levels 2, 5, 4, 7, and 9, the program would have to make sure no combination of paths involving 1, 6, 2, 1, 5, and 9 also accomplishes the same thing. Even false paths connecting to the correct destination level, would have to make sure they arrive at dead ends on that destination level, while the correct vertical path arriving there, doesn't arrive at a dead end. Can't even imagine the complexity to be honest. We live in a 3d space but things get absurdly complicated adding the 3rd dimension onto common games lol

Tool a screenshot inside one of the 3d mazes in that online game link I posted:
The black transparent glassy lines means you can go through, while the walls with 9 square holes in them are the dead ends/walls. (Sliding your finger on the lower left of the screen moves you and swiping on the lower right changes your direction)

Feel free to check out my 3D Chess thread (once again extremely difficult to define and visualize the piece movements):
https://www.chess.com/forum/view/chess-variants/3-dimensional-cubic-chess-88613629

Have proceeded to build a better 3d Maze in survivalcraft again using staircases to connect the levels instead of ladders so the paths are easier to see:
Built the route out first and memorized it, and still am getting lost in all the false routes I'm making it is so unbelievably confusing lol

A truly 3D maze with all six directions would add such a unique twist. I love the idea of navigating different floors and needing to take specific paths in the right order. It reminds me of a puzzle game I played a while ago, where the levels were randomly generated, and the challenge was finding not just the exit but the right sequence of paths. I’ve also been using Blueberry-AI for organizing complex projects, and it’s been super helpful—maybe this kind of system could help with the game’s structure too.

Yep and you can make each level its own maze so that not only do you have to figure out what levels to go to in what order (even repeating levels), but then each level can be its own maze that you have to find your way to whatever staircase you need to get to another level. You can even have false ladders that go from your current level to the next correct level but that end in all draw ends at that level, so you have to find a different ladder that doesn't leave you at a dead end at that new level!
You ever seen the movie Cube (1997)?