在 Minecraft 中,当生物即将生成到世界中时,它们必须首先选择一个生成位置。这意味着在一个区块内随机选择 x/y 坐标,然后在该列中选择 y 高度。
默认情况下,y 高度是从所有可能的 y 高度(从 0 到该列当前最高方块)中均匀选择的。这有几个问题:
- 该列中的大多数 y 高度都不适合作为生成空间
- 由于大量尝试失败,生成速度变慢
- 只有当农场顶部方块位于或接近 y=0 时,生物农场才最有效率。
例如,如果你有一个天空岛世界,并且你生活在 y=65,生物只有 1/66 的概率成功选择你的平台进行生成。这意味着你需要等待更长时间才能生成生物,从而降低了游戏的刺激感。
然而,通过数学方法,我们可以调整某些 y 高度的选择曲线。此模组提供了从默认列表中选择特定生成算法并应用它,以替代原版生成算法的功能。此模组提供的算法如下图中所示:
这些估算基于高度等级为 65,但它们的曲线可以理解为某个 y 高度(作为高度的函数)被选中的可能性。
- Vanilla 对所有高度等级具有相等的概率。
- Surface Pref 有更高的概率选择地表,且在接近地表的区域有高于正常的概率,但在大约 55% 的最大高度之后概率会低于原版。
- Skyblock 对等于或高于最大高度 60% 的层级有高偏好,而在低于最大高度 30% 的值的选择概率接近于零。
- Two Layer 有很高的概率选择接近地表的层级,同时也具有很高的概率选择大约在最大高度 33% 处的次要区域(允许地表生成和深层洞穴生成)。
- Surface Only 将所有生成限制在地表级别或非常接近地表的方块上(以允许水生生物生成)。
最后,这些曲线可以被反转,使你获得相反的效果(相对于高度等级)——即 y 高度变为 (最大高度 - y) 而不是 (y)。这意味着 Surface Only 的反转只会选择接近基岩的层级,而 Skyblock 的反转将有很高的概率选择接近基岩的层级。
In Minecraft, when mobs are going to be spawned into the world, they must first selected a position to spawn in. This means selecting a random x/y position within a chunk, and then picking a y-level within that column.
By default, the y-level is selected uniformly from all possible y-levels, from zero to the current highest block in that column. This is problematic for a couple reasons
- Most y-levels within that column will not be suitable spawn space
- Spawning is slow as a result of all of these failed attempts
- Mob farms are only most efficient when their top block is at or close to y=0.
For example, if you had a skyblock world, and you were living at y=65, mobs would only have a 1/66 chance to actually successfully select your platform to spawn on. This means you have to wait longer for mobs to generate, and in turn makes the experience less exciting.
However, using math, we can adjust the curves at which certain y-levels are selected. This mod provides the ability to select a specific spawn algorithm from a list of defaults, and apply that instead of the vanilla spawn algorithm. The algorithms provided by this mod are described in this graph:
These estimates are done with a height level of 65, but their curves can be understood as how likely a certain y-level (as a function of the height) is to be selected.
- Vanilla has equal probability for all height levels.
- Surface Pref has a much higher probability to select the surface, with a higher than normal probability to select areas near the surface, dropping to lower than vanilla probabilities after about 55% max height level.
- Skyblock has high preferences towards levels that are at or above 60% max height level, and near-zero percent chance to select values below 30% max height.
- Two Layer has a high probability to select levels near the surface, but also a high probability to select a secondary zone at about 33% max height (allowing for surface spawns, and deep cave spawns)
- Surface Only relegates all spawns to the surface level or blocks very nearby (to allow for water mobs to spawn).
Finally, these curves can be inverted, allowing you to receive the opposite effects (relative to height level) - meaning that the y level would become (max height - y) instead of (y). This would mean that the inversion of Surface Only would only select levels near bedrock, and the inverse of Skyblock would have a much higher probability to select levels near bedrock.
评论 0
登录后参与评分
还没有评论,来抢沙发吧