?切勿进入你不希望被淹没的世界——新生成的区块将被自动淹没

简介
Inundated 会在主世界、下界和末地维度中,从 Y 320 到 -64 的高度注入区块生成并填充水。
它会在区块生成的最后阶段执行,这意味着生物群系、地形、矿石和结构保持原样。
基本上,所有 air(空气)和 cave_air(洞穴空气)方块都会被替换为水,所有可被水logged的方块都会被正确地水logged。
这使得树叶、台阶、栅栏和其他方块在水下视觉上保持一致。
然而——火把、甘蔗、下界植被作为特色保留,而草/花最终会被淹没并掉落为物品。(这些是否也需要全部替换为水?)
Inundated 将游戏变成了一种独特的生存挑战,迫使你适应完全在水下的生活——并探索如何在一切都被淹没的情况下生活、探索和建造。
非生成特性
还有一个遗留命令:
/inundated start/stop — 手动淹没附近区块。(仅限 OP)
这对于在安装模组之前生成的未淹没区块非常有用。
⚠️ 小心: 这个过程资源密集型。它会重新计算区块中的每个空气方块,并更新所有周围的水,触发物理效果和邻居更新。
当与像 Particular(添加 3D 溅射粒子效果)这样的模组一起使用时,可能会导致卡顿甚至崩溃。
该命令在完成附近区块的淹没后结束——你可以再次运行以继续。
(1.21.5+) /inundated vision on/off — 默认关闭。当玩家头部在水中时给予夜视效果。如果玩家游出水面,则移除该效果。
已知问题
- 任何新区块的生成现在比原版慢很多倍。
- 更新下界中的大型熔岩湖可能会导致卡顿。
- 末地在较低的生成高度被淹没,导致世界消失紫颂;末地水晶有空气口袋;传送门在 Y 320 生成,因此龙蛋不可获取;末地城市几乎未被淹没。
兼容性
改变 vanilla 生成或维度的模组应该正常工作,因为世界的淹没发生得很晚。
新维度将根据是否使用 populateEntities 方法来决定是否填充。
致谢
几乎所有代码都是由 ChatGPT 编写的,我只是运用了提示工程技巧、逻辑构建以及 inundated 解决一系列错误的能力,而这些错误的解决方案我需要自己在 yarn mappings 中寻找。
我很惊讶它能工作,但我真的很想制作这个模组并将其开源,因为它的替代品都在付费墙后面——现在采用 GPL-3.0 许可证。
?DO NOT ENTER WORLDS THAT YOU DO NOT WANT TO FLOOD - THE NEW CHUNKS WILL BE AUTOMATICALLY FLOODED

ABOUT
Inundated injects chunk generation and fill with water your overworld, nether and the end dimensions from Y 320 to -64.
It injects at the very end of chunk generation, meaning biomes, terrain, ores, and structures stay untouched.
Basically, all air and cave_air blocks are replaced with water, and all waterloggable blocks are properly waterlogged.
This keeps leaves, slabs, fences, and other blocks visually consistent underwater.
And yet - torches, sugarcanes, nether vegetation left as a feature and grass/flowers will eventually flood itself and dropped as item. (does all of this need to be replaced with water too?)
Inundated turns the game into a unique survival challenge, where you're forced to adapt to living entirely underwater — and figuring out how to live, explore, and build while everything is submerged.
NON-GENERATION FEATURE
There’s also a legacy command:
/inundated start/stop — it floods nearby chunks manually. (OP only)
This is useful for non-flooded chunks that were generated before installing the mod.
⚠️ Be careful: this process is resource-intensive. It recalculates every air block in the chunk and updates all surrounding water, triggering physics and neighbor updates.
When used with mods like Particular (that add 3D splash particles), it may cause lag spikes or even crashes.
The command finishes after flooding nearby chunks — you can run it again to continue.
(1.21.5+) /inundated vision on/off — off by default. Gives the effect of night vision when the player's head is in the water. If the player swims out, the effect is removed.
KNOWN ISSUES
- Generation of any new chunks is now many times slower than in vanilla.
- Updating large lava lakes in the nether will probably cause a lag spike.
- The End is flooded at a lower level of generation, causing the world to disappear chorus; end crystals have pockets of air; the portal generates on Y 320, therefore, the dragon's egg is unattainable; end cities are barely flooded.
COMPATIBILITY
Mods that change vanilla generaton or dimensions should work fine, since the flooding of the world with water occurs at the very end.
New dimensions will be filled in depending on whether the populateEntities method is used there or not.
CREDITS
Almost all the code is written by ChatGPT, I just used my promt engineering skills, logic bulding and inundated with solving a bunch of errors, the solution to which I had to look for myself in yarn mappings.
I'm surprised it works at all, but I really wanted to make this mod and make it open source, since its alternatives are behind a paywall - GPL-3.0 now.
评论 0
登录后参与评分
还没有评论,来抢沙发吧