Minecraft Maze3D - Procedural 3D Maze Mod


Use the arrows to browse all 40 screenshots. Click any image to expand it.

Maze3D is a Minecraft Fabric mod written in Kotlin that generates giant, fully explorable 3D mazes. The goal was to keep the logic of a maze while making the spaces feel more like caves: tight passages open into chambers of different sizes, routes branch in every direction, and treasure gives you a reason to keep exploring.

The source code is available on GitHub.

Demo

How It Works

The maze starts as a logical 3D grid of cells. A seeded growing-tree algorithm connects every cell into one maze, choosing mostly random frontier cells but occasionally extending the newest path. That creates lots of branches while preserving some longer corridors.

Cycle intensity controls how many closed neighbor connections are opened afterward. At 0 there is exactly one path between any two cells; values from 1–10 add more loops, with 10 opening every possible adjacent connection.

The renderer gives each cell a deterministic random chamber size up to the chosen maximum, then joins them with narrow corridors and vertical shafts. Most vertical routes use scaffolding, while some loop connections become open drops. The finished cube has a solid shell and ceiling, plus treasure chests stocked with useful exploration supplies.

/maze3d <width> <height> <depth> [wall_block] [max_chamber_size] [cycles] [seed]

For example:

/maze3d 12 5 12 glass 5 6 12345

The dimensions are logical cells rather than literal block dimensions, and any non-air block, including glass, can be used for the walls.



Main

Site

Metroid

Game Dev

Tags