MAZE GENERATOR v3.1
运行时递归分割法迷宫,通过点击按钮构建。
厌倦了手工建造迷宫?将数据包放入你的世界,站在任意位置,点击 [在此处生成迷宫],即可观看完美迷宫逐块生成。全程原版运行——无需任何模组。
功能特性
• 矩形迷宫——可独立设置宽度(X)和高度(Z),范围从 8 到 100,000 格。
• 通道宽度——每条通道的宽度可从 1 到 100,000 格。
• 墙壁高度——可选 3、5、8,或 1 到 16 之间的任意值。
• 墙壁厚度——可选 1、2、3 或 4 格厚。
• 屋顶模式——羊毛屋顶、无屋顶,或不可见的屏障平面,防止玩家飞离。
• 发光解法路径——可切换一条由萤石构成的路线,连接入口与出口。非常适合 trivia 之夜、竞速比赛,或仅用于验证迷宫是否确实可解。
• 清理区域按钮——移除生成器放置的所有方块,以便原位重建。
• 两种交互界面——一个全点击式的聊天菜单,以及一本可随身携带的书。
使用方法
- 下载并解压。将 maze_datapack 文件夹放入你世界的 datapacks 文件夹中(或在游戏内使用世界的“打开文件夹”按钮)。
- 运行 /reload ——聊天栏会显示 “[Maze Gen] v3.1 loaded”。
- 站在你希望作为迷宫角落的位置。迷宫将从你所在位置向 +X/+Z 方向延伸 2 格开始建造。
- 运行 /function mazegen 打开菜单。点击预设选项(或选择 [Custom] 后执行 /trigger mz_custom_size set <number>),然后点击 [在此处生成迷宫]。
- 更喜欢用书?点击 [BOOK] ——所有设置项在书中也都是可点击的按钮。
提示
• 大型迷宫是逐步生成的——请观察顶部操作栏中的进度提示,若耗时数秒属正常现象,无需担心。
• 每次点击都会刷新菜单,因此“Current”行始终准确显示即将生成的内容。
• [CLEAR AREA] 很智能——它仅清除生成器自身放置的方块(地面、墙壁、羊毛、萤石、屏障)。
兼容性
• Minecraft Java Edition 1.21.5 至 26.3(数据包格式 71–200)。
• 在 26.3(当前发布版本)上开发并测试。
• 仅限原版——适用于单人游戏和多玩家服务器。
• 使用其独立的 mz_* 计分板目标,不会与其他数据包冲突。
已知说明
• 极大尺寸(数千格)需要较长时间,建议用于创造模式世界——生成器会分块处理任务,以确保在游戏建造过程中保持响应流畅。
• 如果迷宫看起来“密封”,请记住入口和出口的萤石门位于 X 轴边缘——你也可以随时开启解法路径以查看路线。
由 Near 制作。祝你玩得愉快!
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!
评论 0
登录后参与评分
还没有评论,来抢沙发吧