NoisyPatterns
此工具为 FastAsyncWorldEdit 添加了新的图案(patterns)。
它们可用于 //set 等命令,或任何接受图案的地方。
其核心功能基于 jlibnoise。
该库提供了多种模块,用于构建自定义噪声函数。
其中部分模块已在 WorldEdit(表达式中)和 FastAsyncWorldEdit(例如 #perlin 图案)中公开可用。
这个扩展将体验提升到了一个新的层次:它让你能够以任意方式自由组合模块!
使用方法
本节将以 //set 命令为例,但该方法同样适用于其他命令和画笔工具。
噪声图案的主要结构为 #noise[<模块配置>][<要使用的方块>][<可选的比例参数>]。
一个非常简单的命令可以写成这样://set #noise[voronoi][black_wool,white_wool]

通过额外的缩放,例如 //set #noise[voronoi][black_wool,white_wool][2],结果会有所不同:

模块允许进行更多配置。
具体参数可以在 libnoise 文档 中找到。
以 voronoi 模块为例,它有一个 EnableDistance 函数,
我们可以在 NoisyPatterns 中这样使用它:voronoi[enableDistance=true]。
作为一个完整的命令,它可以写成 //set #noise[voronoi[enableDistance=true]][##wool][8],效果如下:

某些模块也会以其他模块作为输入。在这种情况下,内部模块的编号从 0 到 (n - 1),其中 n 是预期的模块数量。
例如,blend 需要 3 个模块来生成噪声,因此你需要指定模块 0、1 和 2。
//set #noise[blend[0=voronoi[enableDistance=true],1=checkerboard,2=perlin]][##wool][8] 的示例如下:

NoisyPatterns
This tool extends FastAsyncWorldEdit with new patterns.
They can be used in commands like //set or anything else where patterns are accepted.
The actual functionality is based on jlibnoise.
This library provides different modules to build custom noise functions from.
Some of them are already exposed in WorldEdit (in expressions) and FastAsyncWorldEdit (e.g. the #perlin pattern).
This extension takes it to a next step: It lets you freely combine the modules in the way you want!
Usage
This section will use the //set command as an example, but it equally works for other commands and brushes.
The main structure of a noise pattern is #noise[<module configuration>][<blocks to use>][<optional scale parameter>].
A very simple command can look like this: //set #noise[voronoi][black_wool,white_wool]

With additional scaling, e.g. //set #noise[voronoi][black_wool,white_wool][2], the result will look different:

Modules allow for more configuration.
The specific parameters can be found in the libnoise documentation.
As an example, the voronoi module has an EnableDistance function,
which we can use in NoisyPatterns like that: voronoi[enableDistance=true].
As a full command, this could look like //set #noise[voronoi[enableDistance=true]][##wool][8] and result in

Some modules also take other modules as input. In such case, the inner modules are numbered from 0 to (n - 1),
where n is the number of expected modules.
For example, blend takes 3 modules to generate noise from, so you need to specify modules 0, 1, and 2.
Example for //set #noise[blend[0=voronoi[enableDistance=true],1=checkerboard,2=perlin]][##wool][8]:

评论 0
登录后参与评分
还没有评论,来抢沙发吧