
Mage gen
A fully in-game maze generator. Click a button and a complete maze builds itself right in front of you. Rectangle sizes, adjustable corridors, wall height & thickness, wool or invisible roofs, and a glowing solution path. No mods, no tools, no setup.
Compatibility
Minecraft: Java Edition
Platforms
Links
Tags
Creators
Details
MAZE GENERATOR v3.1 Runtime recursive-division mazes, built by clicking buttons.
Tired of hand-building mazes? Place a datapack in your world, stand anywhere, click [BUILD MAZE HERE], and watch a perfect maze generate block by block. Whole thing runs in vanilla — no mods required.
FEATURES • Rectangle mazes — set Width (X) and Height (Z) independently, from 8 up to 100,000 blocks. • Corridor width — from 1 up to 100,000 blocks per passage. • Wall height — 3, 5, 8, or any value from 1 to 16. • Wall thickness — 1, 2, 3, or 4 blocks thick. • Roof modes — Wool roof, no roof, or an invisible Barrier plane so nothing can fly out. • Glowing solution path — toggle a glowstone route that leads from the entrance to the exit. Great for trivia nights, races, or just checking your maze actually solves. • Clear Area button — removes everything the generator placed so you can rebuild in place. • Two interfaces — a click-everything chat menu, and a written book you can carry in your inventory.
HOW TO USE
- Download and unzip. Drop the maze_datapack folder into your world's datapacks folder (or use the world's "Open Folder" button in-game).
- Run /reload — you'll see "[Maze Gen] v3.1 loaded" in chat.
- Stand where you want the maze's corner. It builds 2 blocks into the +X/+Z direction from you.
- Run /function mazegen to open the menu. Click a preset (or [Custom] and then /trigger mz_custom_size set <number>), then click [BUILD MAZE HERE].
- Prefer a book? Click [BOOK] — every setting is a clickable button in there too.
TIPS • Large mazes build progressively — watch the action bar for progress, and don't stress if it takes a few seconds. • Every click refreshes the menu, so the "Current" line always shows exactly what will build. • [CLEAR AREA] is smart — it only clears the generator's own blocks (floor, walls, wool, glowstone, barriers).
COMPATIBILITY • Minecraft Java Edition 1.21.5 through 26.3 (data pack format 71–200). • Developed and tested on 26.3 (the current release). • Vanilla only — works in singleplayer and on multiplayer servers. • Uses its own mz_* scoreboard objectives, so it won't clash with other datapacks.
KNOWN NOTES • Extremely large sizes (thousands of blocks) will take a while and are meant for creative worlds — the generator chunks its work so the game stays responsive while it builds. • If a maze looks "sealed", remember the entrance and exit glowstone doorways are on the X edges — and you can always toggle the solution path on to see the route.
Made by Near. Enjoy!

