Home›Java›Datapacks›Mage gen
Mage gen
DatapacksJava

Mage gen

Java data pack listed for Minecraft 1.21. Downloads from the MC Java Mods app on Android.

by MeNear · on Modrinth

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…

⬇ Download on Modrinth
Mage gen — screenshot 1Mage gen — screenshot 2Mage gen — screenshot 3

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

  1. Download and unzip. Drop the maze_datapack folder into your world's datapacks folder (or use the world's "Open Folder" button in-game).
  2. Run /reload — you'll see "[Maze Gen] v3.1 loaded" in chat.
  3. Stand where you want the maze's corner. It builds 2 blocks into the +X/+Z direction from you.
  4. Run /function mazegen to open the menu. Click a preset (or [Custom] and then /trigger mz_custom_size set ), then click [BUILD MAZE HERE].
  5. 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!

Quick facts

Install steps are the general flow for this file type — see the MC Java Mods guides for the full walkthrough.

File checked by MCModsHub

These come from our own check of the pack file, not from the source page.

Explore more