这是一个数据包,它利用 Minecraft 原版用于生成“随机”结构(如村庄和下界要塞)的 拼凑系统 生成一个随机迷宫。
我创建这个数据包是因为在观察原版村庄时,虽然能相对简单地看到拼凑方块是如何使用的,但我希望创建一个更简单、更直观的例子来观察其实际运作方式,以便完全理解该系统。我想既然已经做出来了,不如公开分享,也许其他人也能从中受益。
此外,看着自己基于游戏系统制作的东西运转起来很有趣,而且我也想为游戏找点新乐子 ;)
如需查看一些图片,请前往画廊。
主要文件是一个数据包,你可以像其他任何数据包一样将其附加到世界中。如果在新的世界中使用(超平坦预设除外),迷宫本身会自然生成,请注意这一点。(如果是主世界,它将生成)。使用的命名空间应为 mazegen:
随数据包下载提供的还有一个可选(但推荐)的世界文件,其中包含单独的结构部件,如果你想了解该结构的设置方式,可以使用它 因为那确实是我制作这个的主要动机哈哈。
仅推荐使用超平坦世界以获得更清晰的视觉效果,除此之外祝你好运。要在超平坦世界中放置,请使用 /place structure mazegen:maze ~ ~ ~
(鼓励深入数据包文件以了解其实现方式)
一些有用的链接:
This is a datapack that generates a random maze using the vanilla Jigsaw system that Minecraft uses to generate 'random' structures such as villages and Nether fortresses.
I created this datapack because while the vanilla villages were relatively simple with just seeing how the Jigsaw blocks are used, I wanted to create something more simpler and less subtle to see it in action so I can fully understand the system. I figured I might as well release this publicly since someone else might get value out of it.
Also it's fun seeing something you made yourself out of a game's system work, and I wanted something new to do in the game ;)
Go to gallery if you want to see some images.
The main file is a datapack that you can append to a world like any other. The maze itself will naturally generate if used in a new world (with the exception of superflat presets) so keep that in mind. (if it's the overworld, it will generate). The namespace used should be mazegen:
Included with the datapack downloads is an optional (but reccomended) world that contains all the parts individually if you want to see how the structure is set up, since that was kinda my main motivation for making this lol.
Superflat worlds reccomended only for visual clarity, but other than that glhf. To place in a superflat world, do /place structure mazegen:maze ~ ~ ~
(digging into the datapack files to see how its done is encouraged)
Some helpful links:
评论 0
登录后参与评分
还没有评论,来抢沙发吧