这个 Bukkit 插件会在新区块生成时随机添加额外的矿石。目前仅支持默认的 Minecraft 矿石。当前,矿石生成仅在主世界(Over World)中生效。尽管生成只发生在主世界中,但可以使用来自任何维度的矿石。
矿石基于配置文件以球形团块的形式生成。首次运行插件后会自动创建默认配置文件。为了获得最佳效果,建议在新世界中使用该插件。配置文件中为每种矿石和每个独立区块生成了可复现的种子值。如果删除并重新生成世界,且世界种子或配置未发生更改,矿石将在完全相同的位置生成。更改世界种子将改变矿石生成的位置。对矿石的配置进行任何更改也会改变其生成的位置。
以下是配置文件的简要说明:
oreGenSettings:
- ==: OreGenSettings
percentChancePerTry: 40.0
maxPerChunk: 2
ore: CLAY
triesPerChunk: 4
percentChancePerBlock: 80.0
radius: 5.5
logAttempts: 'true'
replacedBlocks: SAND,DIRT,COARSE_DIRT,GRASS_BLOCK,GRAVEL
- ore: 将要添加到区块中的矿石。
- radius: 要生成的球体半径。最小值为 0.5,最大值通常为 16,但会动态计算;如果配置值大于计算出的最大值,则使用计算出的最大值。
- triesPerChunk: 控制插件尝试向区块中添加矿石的次数。添加矿石失败的原因有很多。最小值为 1,最大值为 50。
- maxPerChunk: 成功向区块中添加矿石的最大尝试次数。即使只有一个方块被转换为矿石,也视为成功。最小值为 1,最大值为 50。
- percentChancePerTry: 这是一个百分比值(即 40 代表 40%)。如果此检查失败,则尝试不成功。该值为双精度浮点数,可以非常小,从而使某些矿石极为稀有。最小值为 0,最大值为 100。
- percentChancePerBlock: 这是一个百分比值(即 80 代表 80%)。如果此检查失败,则该方块不会被转换为矿石。最小值为 0,最大值为 100。
- replacedBlocks: 可选。如果未指定,默认替换的方块列表为:GRANITE、STONE、ANDESITE、DIORITE、CALCITE、DEEPSLATE、TUFF。
- logAttempts: 可选。如果指定为 'true',无论是成功还是失败的矿石生成尝试都会记录到服务器的日志中。
This Bukkit plugin will randomly add extra ores to new chunks as they are generated. At this time, only the default Minecraft ores are supported. Currently, the ore generation only works in the Over World. Even though the generation only takes place in the Over World, ores from any dimension may be used.
The ores are generated in spherical blobs based on a configuration file. The default configuration file will be created after the plugin's first run. For best use, this plugin should be used with brand new worlds. A reproducible seed value is generated for each ore in the configuration and per each individual chunk. If the world is deleted and regenerated and no changes have been made to the world seed or configuration, the ores will generate in the exact same locations. Changing the world seed will change the locations where the ores generate. Making any changes to the configuration for an ore will change the locations where the ore generates.
Here is a quick explanation of the configuration file:
oreGenSettings:
- ==: OreGenSettings
percentChancePerTry: 40.0
maxPerChunk: 2
ore: CLAY
triesPerChunk: 4
percentChancePerBlock: 80.0
radius: 5.5
logAttempts: 'true'
replacedBlocks: SAND,DIRT,COARSE_DIRT,GRASS_BLOCK,GRAVEL
- ore: This is ore that will be added to the chunk.
- radius: The radius of the sphere to be generated. Minimum is 0.5 and the maximum will typically be 16 but is computed on the fly and if the configuration value is larger than the computed max then the computed max will be used.
- triesPerChunk: This controls how many times the plugin will attempt to add the ore to the chunk. There are several reasons why adding the ore will fail. Minimum is 1, maximum is 50.
- maxPerChunk: This is the maximum number of successful attempts to add the ore to the chunk. Even if only one block is converted to the ore, this is considered a success. Minimum is 1, maximum is 50.
- percentChancePerTry: This is a percent value (i.e. 40 is 40%.) If this check fails, the attempt is not successful. This is a double sized value and can be very small so as to make some ores very rare. Minimum is 0, maximum is 100.
- percentChancePerBlock: This is a percent value (i.e. 80 is 80%.) If this check fails, the block will not be converted to the ore. Minimum is 0, maximum is 100.
- replacedBlocks: Optional. If not specified, the default list of replaced blocks will be: GRANITE, STONE, ANDESITE, DIORITE, CALCITE, DEEPSLATE, TUFF
- logAttempts: Optional. If specified as 'true', both failed and successful attempts to generate the ore will be added to the server's logs.
评论 0
登录后参与评分
还没有评论,来抢沙发吧