简介:
我从 Minecraft 首次发布就开始游玩,但直到最近我才意识到原来还有数据包(data packs)这种东西。我立刻迷上了世界生成类数据包,以及游戏中哪怕只是一处微小的代码改动也能让整个游戏体验焕然一新的魅力。仅仅替换一个方块,就能让整个世界变成金色;或者把游戏里每一棵树的所有树叶方块位置都换成猪!我曾在学习、研究并为个人、朋友以及公众制作了几个世界生成数据包,期间我一直在玩弄 slicedlime 发布的 Minecraft 世界生成代码。然而,洞穴更新彻底改变了这一切。Mojang 完全重写了世界生成系统,让我感觉之前所有的学习成果都付诸东流,我必须随着 Minecraft 的每一次新版本发布重新学习世界生成的工作原理。变化之大,让我几乎无法适应新的世界生成设置。在 1.16 版本中,如果我想在热带草原生物群系中生成丛林树,我只需要在热带草原生物群系的配置中添加短短 5 行代码,热带草原中就会多出丛林树。如果你想让末地城或下界要塞生成?只需沿用之前的方法即可。一切都很简单、容易,且限制极少。即使是像我这样对编程毫无天赋的人也能乐在其中。但在 1.18 版本中,他们移除了这些便利。想在某个生物群系中加入蓝花?没门,游戏会崩溃。想让下界生物群系在主世界中存在?不行,直接崩溃。想在寒冷海洋中增添色彩并生成珊瑚?也不行。一旦你告诉游戏寒冷海洋生物群系中存在珊瑚,游戏就会崩溃。我非常讨厌 Mojang 在 1.18 洞穴更新中实施的这种新式的、过度复杂且高度受限的世界生成机制。它让我的工作变得少了很多乐趣,多了很多挫败感,成就感也微乎其微。
这个数据包的作用是什么?
老实说?没什么特别的。如果你是非专业人士,你几乎不会注意到任何变化。嗯……除了现在可以在地面上生成的新地下生物群系。是的,很抱歉。这并非本意。不知为何,它们现在像其他任何生物群系一样在地面上生成了。这是个意外。但这个数据包的主要目标是恢复旧版的世界生成方式。这里指的并非游戏玩法,而是底层机制。在 1.18 之前,游戏只需几百行,甚至更少的代码就能告诉世界如何及生成何种生物群系。然而,洞穴更新后一切都变了。现在,游戏生成同样的生物群系以及新增的几个生物群系,竟然需要多达 200,000 行代码!这太荒谬了。我简直无法理解。我无法在这样的基础上工作!我无法轻松地修改或更改其中的任何内容!这太多了!这个数据包试图让世界的生成方式尽可能与以前保持一致,同时使用尽可能少的代码行数,以便我和其他一些经验不足、笨手笨脚的人能够理解数据包中究竟发生了什么,然后根据自己的想象进行修改。现在,游戏生成的生物群系基本相同,生成方式也基本一致,但代码行数从默认的 205,030 行减少到了 1,423 行。
Introduction:
I've been playing Minecraft since the first release but I only realized that there were in fact data packs. I immediately fell in love with world generation data packs and that how one minor change in the game's code can make the game feel wholly different. A simple replace of a block makes the world golden or makes it that there are PIGS in the place of every single leaves block in the game for every single tree that there is! I learnt, studied and made several world generation data packs for me, my friends and for the public while playing and toying around the Minecraft worldgen code that slicedlime released. But everything has changed with the cave update. Mojang completely rewrote the world generation system and it felt like all my previous studies went down the drain like nothing and I had to start re-learning how world generation works with each new release of Minecraft. They changed so much I could barely stand my ground with the new world generation settings. Back in 1.16 if I wanted jungle trees in a savanna biome I just added as few as 5 lines of code into the savanna biome and poof there now were extra jungle trees in the savanna biome. If you wanted end cities to generate or mansions in the nether? Just as easily as the previous method was. It was simple, easy, with very few limitations. Even someone like me who has absolutely terrible affinity for coding could enjoy himself. With 1.18 the removed this. If you want to add blue orchids to a biome? Forget it. The game will crash. You'd like nether biomes to exist in the overworld? Nope. Crash. You'd like to add some color to cold oceans and you'd want some coral to generate? Nah. As soon as you tell the game that there are corals in cold ocean biomes it'll crash. I really despise this new, overcomplicated, highly limited worldgen that Mojang has implemented with the 1.18 cave update. It made my work much much less enjoyable and much more frustrating with very little sense of achievement.
What does the data pack do?
Honestly? Not much. You won't notice pretty much anything if you're a layman. Well... except for the new underground biomes that now can generate above ground. Yeah, sorry about that. That wasn't intentional. For some reason they now do generate above ground just as any other biome does. That was an accident. But the main goal of this data pack was to bring back the old kind of world generation. Not in the sense of gameplay but mechanics. Before 1.18 the game used as few as a few hundred, maybe even fewer lines of code to tell the world how and what sort of biomes should it generate. However, all that changed with the cave update. Now the game generates the very same biomes with the few new ones with as much as 200.000 lines of code! That's absurd. Can't even get my head around that. I can't work with that! I cannot easily modify that or change any of that! That's way too much! This data pack tries to make the world generate pretty much the same way as before but with as few lines of code as possible so me and maybe a few other inexpert, clumsy ones can get a sense of what is exactly going on in the data pack, then modify it t other imagination. Now the game generate mostly the same biomes, mostly the same way but with 1423 lines of code instead of the default 205030.
评论 0
登录后参与评分
还没有评论,来抢沙发吧