此模组为 Minecraft 的世界生成提供了一些低级辅助类,并附带了这些类的使用示例(以世界预设的形式呈现)。
辅助工具
密度函数 (DensityFunctions)
注意: 这些函数目前仍在扩展和修订中。参数名称和值可能会偶尔发生变化。
distance
该函数在世界原点(X=0, Z=0)处返回 1.0,在指定的“max”欧几里得距离及更远的位置返回 0.0。
如果存在可选的“min”参数,则在距原点该距离内的方块将返回 1.0 值,而不仅仅是原点本身。
注意:旧的“argument”参数名称已弃用,但至少在版本 2.0 之前应继续有效。
lerp
该函数实现了在“value1”和“value2”指定的 DensityFunctions 返回值之间的线性插值,插值权重由“alpha”参数中的第三个 DensityFunction 指定。当 “alpha” <= 0.0 时,选择 “value1”;当 “alpha” >= 1.0 时,选择 “value2”。
世界生成预设
单一大陆 (Single Continent)
世界由一个单一的大陆或一组较大的岛屿组成,范围延伸至距原点约 8000 个方块。在此范围之外,仅会随机生成岛屿和蘑菇岛;从约 15000 个方块开始,只有深海一直延伸到无穷远处。
大锅 (The Cauldron)
世界的中心是一片恶劣的沙漠区域,气温高且没有植被。如果搭配需要喝水和保持阴凉状态的生存类模组,体验会非常残酷。从距原点约 12000 个方块开始,正常的地形生成才会启动。
该项目仍在进行中。计划是在中心区域周围添加一圈极高的山脉作为屏障。
群岛 (Archipelago)
世界被划分为舒适的大型岛屿,岛屿之间隔着数千个方块的开阔海洋。建议使用种子预览模组来选择合适的种子,否则出生点几乎肯定会位于海洋中央,四周看不到任何陆地。
This mod adds a few low-level helper classes for Minecraft's world generation, as well as examples of their use in the form of world presets.
Helpers
DensityFunctions
Note: The functions are currently expanded and revised. Expect parameter names and values to occasionally change.
distance
This function returns 1.0 at the origin of the world (X=0, Z=0) and 0.0 at the (Euclidean) distance specified in the "max" and beyond.
If the optional "min" parameter is present, the blocks within that distance to the origin return the 1.0 value, instead of just the origin.
Note: The old "argument" parameter name is deprecated, but should continue working until at least a future version 2.0.
lerp
This function implements a linear interpolation between the values returned from the DensityFunctions specified in "value1" and "value2", with the interpolation weight specified in a third DensityFunction in the "alpha" argument. At "alpha" <= 0.0, "value1" is chosen, and at "alpha" >= 1.0, "value2".
World generation presets
Single Continent
The world consists of a single continent or a gathering of larger islands up to about 8000 blocks from the origin. From there, only occasional islands and mushroom islands spawn, and from some 15000 blocks on, only deep ocean stretches into infinity.
The Cauldron
The centre of the world is an inhospitable desert area, with high temperature and no vegetation. If paired with survival-type mods requiring to drink water and stay in the shade, it can be downright brutal. From about 12000 blocks from the origin on, normal terrain generation commences.
This is a work in progress. The idea is to add a ring of very high mountains as a barrier around the central area.
Archipelago
The world is divided in comfortably large islands separated by thousands of blocks of open ocean. Using a seed preview mod to pick a suitable seed is recommended, else the spawn is almost guaranteed to be in the middle of an ocean, with no land in sight.
评论 0
登录后参与评分
还没有评论,来抢沙发吧