在 Minecraft 代码的深处,鲜有人涉足的区域,存在一个相对不为人知的系统,称为「区域难度」(regional difficulty)。正是由于它的存在,不同区域的难度能够稳步提升——当然,是提升到一定程度为止。这种提升方式因世界所选难度、玩家在该区域累计停留的时间,甚至月相等因素而异。在新世界的初期,人们可能不太会记得遇到过穿着附魔盔甲的僵尸与骷髅,或是已经受到药水效果影响的苦力怕和蜘蛛;然而,那些花费大量时间完善大型建筑的玩家,一定会注意到随着时间的推移,这类情况出现得越来越多。
这些例子就是区域难度的典型表现……而 Restless Legions 反转 了这一机制。
安装 Restless Legions 后,世界中所有区块的区域难度默认不再为 0。特定区块的区域难度也不会因为玩家的存在而增加——恰恰相反。Restless Legions 使得世界从一开始就充满敌意,上述那些异常现象会立即可以遇到,只有当玩家在附近停留相当长的时间后,该区域才会变得相对安全。
兼容性
本模组使用 mixins 来覆盖 vanilla(原版)中 DifficultyInstance.java 的 calculateDifficulty 方法。因此,任何也修改了该方法的模组几乎必然会导致兼容性问题。然而,该方法非常冷门,实际上很少有人会去动它——即使有人修改,通常也只是调用它而非改变其逻辑——因此可以预期,目前存在的模组中几乎没有哪个会与 Restless Legions 产生冲突。
测试免责声明
需要指出的是,通过命令跳过时间 不会 影响区块的「居住值」(habitation value)。当你在使用跳时命令看到 F3 菜单中的「局部难度」字段发生变化时,那仅仅是因为月相因素——不同的月相会以不同方式影响区块的区域难度。
相反,如果想测试 居住值 因素对数值的影响,不幸的是,据我所知最好的方法是:通过相应命令将刻速调至最高,然后手动在同一区块内停留很长时间。
居住值的逐渐增长也与玩家数量有关,因此在多人游戏中更容易测试:例如,两名玩家停留在同一区块会使该区块的居住值增长速度比只有一名玩家时快一倍。
Deep within Minecraft's code, where people seldom venture, lies a relatively-unknown system called 'regional difficulty'. Thanks to its existence, the difficulty in different areas is able to steadily progress - up to a point, of course - in various ways depending on things such as the world's selected difficulty, how much time players have cumulatively spent in the area, and even the phase of the moon. Near the start of a new world, one would likely not remember encountering zombies and skeletons wearing enchanted armor, or creepers and spiders that have spawned in already affected by potions effects, yet players that spent ages perfecting large-scale builds would have certainly noticed such occurrences popping up more and more over time.
Those examples are notable symptoms of regional difficulty… and Restless Legions inverts it.
With Restless Legions installed, the regional difficulty of all chunks in the world is no longer 0 by default. Neither does the regional difficulty of specific chunks increase with player presence there - just the opposite. Restless Legions makes it so the world is a hostile place from the very start, with the aforementioned symptoms becoming encounterable immediately, and areas can only be made safer if players have spent a substantial amount of time in the vicinity.
Compatibility
This mod uses mixins to overwrite the vanilla calculateDifficulty method of DifficultyInstance.java. Therefore, any mods that change it too are practically guaranteed to cause a compatibility error. However, the method in question is so niche that practically no one ever touches it - and, if they do, they merely call it instead of modifying it - so it should be expected that essentially no mods in existence would have any issues with Restless Legions.
Testing Disclaimer
It should be pointed out that skipping time via commands does not affect the habitation value of chunks. When you see the 'local difficulty' field in the F3 menu change by using time-skipping commands, that is only happening due to the moon phase factor - different phases of the moon change the regional difficulty of chunks differently.
Instead, if one wants to test how the habitation factor affects the value, unfortunately the best method that I am aware of is by manually staying in the same chunk for a long time after raising the tick speed via the appropriate command to as high as possible.
The gradual increase of the habitation value is also player-dependent, so it's easier to test it in multiplayer: for example, two players staying in the same chunk increases that chunk's habitation value twice as fast compared to if there was only one player.
评论 0
登录后参与评分
还没有评论,来抢沙发吧