ikbLib 是一个库模组,提供了一系列全新的 Voronoi/细胞噪声密度函数,以及用于种子化密度函数的 API 和新的流体行为。如需完整文档,请参阅 Wiki。
Voronoi 噪声

如果你将多种颜色的颜料滴在画布上,然后让每种颜色从落点向外扩散,你就会得到一种称为 Voronoi 图的图像。这类图是 Voronoi 噪声的基础,也称为细胞噪声,因为它类似于植物或动物细胞的微观视图。
ikbLib 添加了三种此类噪声的新密度函数:
"ikblibrary:voronoi":基础的 Voronoi 噪声函数,可以输出当前单元格或邻近单元格的中心距离、值或速度。必须定义 "scale" 参数,但所有其他参数均为可选,若省略则恢复为默认值。
"ikblibrary:cached_voronoi" & "ikblibrary:pull_cached_voronoi":一对技术型函数。它们与基础 Voronoi 噪声具有相同的输出和配置,但针对从单个 Voronoi 图中采样多个不同值进行了优化。
种子化密度函数
ikbLib 添加了一个名为 SeededDensityFunction 的新接口,其他模组开发者可以使用它将世界的种子轻松传递到他们自己的密度函数中。有关实现细节,请参阅 Wiki 或 Github 仓库。
可堆叠流体
ikbLib 创建了一个简单的、基于数据驱动的系统,用于制作能够流经其他流体下方或上方的流体。只需将 stackable_wet 或 stackable_molten 标签添加到一组流体中,即可观察它们堆叠的效果!

*为了达到最佳效果,请确保每种流体都在 NeoForge 的流体 API 中定义了密度。当两种流体相遇时,密度较大的流体会穿过并从密度较小的流体下方流过。
ikbLib is a library mod featuring a family of new voronoi/cellular noise density functions, plus API for seeded density functions and new fluid behaviours. For full documentation, see the Wiki.
Voronoi Noise

If you were to drop many different colors of paint onto a canvas, then let each color spread from the point where it falls, you would get a kind of image called a voronoi diagram. These diagrams are the basis of voronoi noise, also called cellular noise because it resembles a microscopic view of plant or animal cells.
ikbLib adds three new density functions that this type of noise:
"ikblibrary:voronoi": A basic voronoi noise function, which can output the distance from center, value, or velocity of the current cell or a neighboring cell. A defined "scale" parameter is required, but all other parameters are optional and revert to default if omitted.
"ikblibrary:cached_voronoi" & "ikblibrary:pull_cached_voronoi": A pair of technical functions. These have the same outputs and configurations as the basic voronoi noise, but are optimized for sampling several different values from a single voronoi diagram.
Seeded Density Functions
ikbLib adds a new interface called SeededDensityFunction which other mod developers can use to easily pass the world's seed into their own density functions. See the Wiki or Github repository for implementation details.
Stackable Fluids
ikbLib creates a simple, data-driven* system for making fluids that flow under and over other fluids. Simply add the stackable_wet or stackable_molten tag to a group of fluids, and watch them stack!

*For full effectiveness, ensure each fluid has a defined density in NeoForge's fluid API. When two fluids meet, the denser of the two will flow through and under the lighter fluid.
评论 0
登录后参与评分
还没有评论,来抢沙发吧