白噪声生成器插件
本插件使用白噪声生成独特且随机填充的区块,创造出混乱而抽象的地形。世界生成利用八度音阶噪声来确定方块放置位置,从而创建一个随机但视觉上有趣的世界。你可以自定义比例、八度音阶数量和噪声强度,以及调整用于世界生成的方块调色板。 ⚙️
功能 ✨
- 基于白噪声生成世界区块,创造出视觉上混乱的地形。
- 方块调色板可自定义,以在世界生成中使用不同的混凝土方块。
- 可调参数:控制比例、八度音阶数量和噪声强度,以便在世界生成中获得更多变化和掌控力。
- 自动强制执行有效参数范围——超出允许范围的数值会自动进行调整。 ⚖️
- 兼容 Minecraft 1.20 及更高版本。
配置 ⚙️
你可以通过以下参数自定义生成设置:
- blocks: 用于生成的方块列表(例如
blocks=orange_concrete,lime_concrete)。
- 范围:Minecraft 中可用的任何方块。应为逗号分隔的列表(例如
orange_concrete,lime_concrete)。
- scale: 控制噪声的频率。较低的值会使噪声更具“块状感”,而较高的值则使其更平滑。
- 默认值:
0.02
- 范围:
0.02 到 1.0(超出此范围的数值将自动调整)。
- octaves: 定义噪声的细节程度。更高的八度音阶数量会创建更复杂的图案。
- 默认值:
8
- 范围:
1 到 16(超出此范围的数值将被钳制到该范围内的最近值)。
- noise: 控制噪声的强度。更高的值会导致更明显的方块放置差异。
- 默认值:
0.5
- 范围:
0.0 到 1.0(超出此范围的数值将自动调整)。
使用方法
只需安装该插件,并在世界设置中将世界生成器设置为 WhiteNoiseGenerator。通过在创建世界的命令中添加诸如方块类型、比例、八度音阶和噪声强度等参数来自定义生成过程。
与 Multiverse-Core 配合使用的示例
1. 使用白噪声生成器创建新世界
确保你的服务器已安装 Multiverse-Core。要使用白噪声生成器创建新世界,请使用以下命令:
/mv create new normal -t FLAT -g WhiteNoiseGenerator
此命令将使用你的插件进行世界生成来创建一个新世界的。
2. 使用自定义参数创建新世界
如果你想使用自定义参数(例如不同的方块、比例、八度音阶等),你可以在命令中指定它们:
/mv create new normal -t FLAT -g WhiteNoiseGenerator:{blocks=orange_concrete,lime_concrete;scale=0.2;octaves=8;noise=0.5}
此命令将生成具有特定方块类型、比例、八度音阶和噪声强度的世界。
3. 在 World Settings 中使用插件
如果你想为多个世界自动设置生成器或调整其他设置,可以手动编辑 Multiverse-Core 文件夹中的 worlds.yml 文件。在该文件中,在每个世界的配置下,你可以设置生成器键以使用白噪声生成器:
yml
<world_name>:
generator: WhiteNoiseGenerator:{blocks=blue_concrete;scale=0.03;octaves=8;noise=0.6}
这会将生成器应用到该世界。
自动范围强制执行 ⚖️
该插件会自动强制执行参数的有效范围。如果用户提供的数值超出允许的范围(对于比例、八度音阶或噪声),插件会将该值调整为最近的合法选项:
- scale: 低于
0.02 的任何值将设置为 0.02,高于 1.0 的任何值将设置为 1.0。 ⚖️
- octaves: 超出
1 到 16 范围的数值将调整到该范围内最近的值。
- noise: 低于
0.0 的值将设置为 0.0,高于 1.0 的任何值将设置为 1.0。
White Noise Generator Plugin
This plugin generates unique, randomly filled chunks using white noise, creating chaotic and abstract landscapes. The world generation uses noise from octaves to determine the block placement, creating a random yet visually interesting world. You can customize the scale, octaves, and noise intensity, as well as adjust the block palette for the world generation. ⚙️
Features ✨
- Generates world chunks based on white noise, creating a visually chaotic landscape. ️
- The block palette can be customized to use different concrete blocks for world generation.
- Adjustable parameters: Control the scale, octaves, and noise intensity for more variety and control in the world generation.
- Automatically enforces valid parameter ranges — values outside of the allowed range are automatically adjusted. ⚖️
- Compatible with Minecraft 1.20 and later versions. ️
Configuration ️
You can customize the generation settings using the following parameters:
- blocks: List of blocks to be used for generation (e.g.,
blocks=orange_concrete,lime_concrete).
- Range: Any blocks available in Minecraft. It should be a comma-separated list (e.g.,
orange_concrete,lime_concrete).
- scale: Controls the frequency of the noise. A lower value makes the noise more "chunky," while a higher value makes it smoother.
- Default:
0.02
- Range:
0.02 to 1.0 (Values outside this range will be automatically adjusted).
- octaves: Defines the level of detail in the noise. A higher number of octaves creates more complex patterns.
- Default:
8
- Range:
1 to 16 (Values outside this range will be automatically clamped).
- noise: Controls the intensity of the noise. A higher value results in more distinct block placements.
- Default:
0.5
- Range:
0.0 to 1.0 (Values outside this range will be automatically adjusted).
How to Use
Simply install the plugin and set the world generator to WhiteNoiseGenerator in your world settings. Customize the generation by adding parameters such as block types, scale, octaves, and noise intensity in the world creation command.
Examples of Using with Multiverse-Core
1. Creating a New World with White Noise Generator
Ensure that Multiverse-Core is installed on your server. To create a new world using the White Noise Generator, use the following command:
/mv create new normal -t FLAT -g WhiteNoiseGenerator
This command will create a new world using your plugin for world generation.
2. Creating a New World with Custom Parameters
If you want to use custom parameters (e.g., different blocks, scale, octaves, etc.), you can specify them in the command:
/mv create new normal -t FLAT -g WhiteNoiseGenerator:{blocks=orange_concrete,lime_concrete;scale=0.2;octaves=8;noise=0.5}
This command will generate a world with specific block types, scale, octaves, and noise intensity.
3. Using the Plugin with World Settings
If you want to automatically set the generator for multiple worlds or adjust additional settings, you can manually edit the worlds.yml file found in the Multiverse-Core folder. In this file, under each world's configuration, you can set the generator key to use the White Noise Generator:
yml
<world_name>:
generator: WhiteNoiseGenerator:{blocks=blue_concrete;scale=0.03;octaves=8;noise=0.6}
This will apply the generator to that world.
Automatic Range Enforcement ⚖️
The plugin automatically enforces valid ranges for the parameters. If a user provides a value outside the allowed range (for scale, octaves, or noise), the plugin will adjust the value to the nearest valid option:
- scale: Any value below
0.02 will be set to 0.02, and any value above 1.0 will be set to 1.0. ⚖️
- octaves: Values outside the range of
1 to 16 will be adjusted to the closest value within that range.
- noise: Values below
0.0 will be set to 0.0, and any value above 1.0 will be set to 1.0.
评论 0
登录后参与评分
还没有评论,来抢沙发吧