• 欢迎来到Minecraft插件百科!
  • 对百科编辑一脸懵逼?帮助:快速入门带您快速熟悉百科编辑!
  • 因近日遭受攻击,百科现已限制编辑,有意编辑请加入插件百科企鹅群:223812289

Terra/群系配置

来自Minecraft插件百科
Qsefthuopq讨论 | 贡献2020年11月7日 (六) 20:16的版本 (创建页面,内容为“{{模板:TRBox}} This page discusses the configuration of Biomes. For information on Biomes, see the [https://github.com/PolyhedralDev/TerraDefaultConfig/wiki/Biome…”)
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)
跳转至: 导航搜索

This page discusses the configuration of Biomes. For information on Biomes, see the About Biomes page.

Biome configurations are in the biomes/ directory within a config pack.

主要选项

id

The ID of this Biome. Any string will work as an ID, though it is generally recommended to use UPPERSNAKECASE for object IDs.

extends

This key holds the ID of the abstract biome this biome extends. It is optional. If included, any abstractable keys missing from this biome will be pulled from the super biome.

noise-equation

生成地形使用的噪声等式。正数值生成坚实(solid)地形,负数值生成负(negative)地形。变量和函数:

  • x - 当前x轴坐标
  • y - 当前y轴坐标
  • z - 当前z轴坐标
  • noise2(x, z) - Get 2D noise at an X and Z value. (Parameters can be expressions, e.g. noise2(x/5, z*2)).
  • noise2(x, y, z) - Get 3D noise at an X, Y and Z value. (Parameters can be expressions, e.g. noise2(x/5, y^2, z*2)).
  • Terra includes most standard mathematical functions (trig functions, max(a, b), min(a, b), floor(x), ceil(x), round(x), etc.) If you want another function implemented, submit a PR to our Parsii fork, or create an issue requesting it.

More info about setting up equations here.
This value must be included, and can be abstracted.

vanilla

该自定义群系使用的原版群系ID。可以在这里找到群系的ID。

erodible

A boolean value that defines whether this biome can be eroded.
This value is optional (defaults to false) and cannot be abstracted,

次要选项

structures

A list of structure config IDs that can generate in this biome.
This value is optional (defaults to an empty list) and can be abstracted.

palette

A list of Palettes to use in the biome. Each list entry contains a single key-value pair, with the key being the palette ID, and the value being the Y-level at which the palette starts to generate.

A shortcut exists for palettes that only contain a single block. Instead of creating a palette file for a single-block palette, you may simply include BLOCK:minecraft:block_id as a palette ID in this list.
This value must be included, and can be abstracted.

Example Palette Configurationpalette:

 - "BLOCK:minecraft:bedrock": 0
 - GRASSY: 255This palette configuration generates the GRASSY palette at Y level 255 and down, until it reaches Y=0, where a single-block palette containing just Bedrock will be generated.

snow

A list of Snow configurations to use in the biome. This allows you to configure different amounts of snow at different Y-levels. Each entry defined the minimum Y-value, maximum Y-value, and amount of snow to generate within that range.
This value must be included, and can be abstracted.

Example Snow Configurationsnow:

 - min: 0
   max: 120
   # Chance is per 100
   chance: 50 # 50%
 - min: 120
   max: 140
   chance: 75 # 75%
 - min: 140
   max: 255
   chance: 100 # 100%This snow configuration generates 50% snow from Y=0-120, then 75% snow from Y=121-140, and 100% snow above Y=141.

flora

Various options that define the Flora to generate in this biome.
This value must be included, and can be abstracted.
Options:

  • chance - The chance (per 100) each block will attempt to generate Flora. (Optional, defaults to 0).

  • attempts - The amount of times to attempt Flora generation (Optional, defaults to 1).
    This value is useful when a biome has many Flora types with conflicting heights/spawn criteria, since if spawning fails, another type of Flora will attempt to generate.

  • simplex

    - Options to distribute Flora using Simplex noise

    • enable - Whether to use Simplex noise to distribute Flora (When false, pseudorandom is used). (Optional, defaults to false).

    • frequency - Frequency of the Simplex noise generator. (Optional, defaults to 0.1).

    • seed - Seed of the Simplex noise generator (Optional, defaults to 2403).

  • items

    - Contains definitions for the types of Flora to generate in this biome, along with their weights and height restrictions.

    • FLORA_ID

      - The ID of a Flora object to generate in this biome. This can be either

      pre-included

      flora, or a

      custom

      Flora object ID. A biome may have any number of Flora objects defined.

      • weight - The weight of this Flora object in this biome's Flora pool.

      • y

        - Height restrictions for this Flora object.

        • min - The minimum height at which this Flora object can generate.

        • max - The maximum height at which this Flora object can generate.

Example Flora Configurationflora:

 chance: 60
 attempts: 1
 items:
   TALL_GRASS:
     weight: 29
     y:
       min: 62
       max: 84
   GRASS:
     weight: 70
     y:
       min: 62
       max: 84
   SUNFLOWER:
     weight: 1
     y:
       min: 62
       max: 84A standard Flora configuration, using all included Flora. All Flora items have the same height restrictions; they can only generate from Y levels 62 to 84.GRASS is the most common, with a weight of 70/100 (70%).TALL_GRASS has a weight of 29/100 (29%)SUNFLOWER has a weight of 1/100 (1%).Every block in this biome has a 60% chance of generating Flora, and generation will only be attempted once.

trees

Various options that define Tree generation in this biome. This value must be included, and can be abstracted.
Options:

  • density - The chance (per 1000) every fourth block will attempt to generate a Tree. (Optional, defaults to 0).
    (Since this value is every fourth block, it can be thought of as out of 4000).

  • items

    - Contains definitions for the types of Trees to generate in this biome, along with their weights and height restrictions.

    • TREE_ID

      - The ID of a Tree object to generate in this biome. This can be either

      pre-included

      trees, or a

      custom

      Tree object ID. A biome may have any number of Tree objects defined.

      • weight - The weight of this Tree object in this biome's Tree pool.

      • y

        - Height restrictions for this Tree object.

        • min - The minimum height at which this Tree object can generate.

        • max - The maximum height at which this Tree object can generate.

Example Tree Configurationtrees:

 density: 250
 items:
   OAK:
     weight: 8
     y:
       min: 58
       max: 84
   LARGE_OAK:
     weight: 2
     y:
       min: 58
       max: 84A standard Tree configuration, potentially useful for a forest. It uses all included Trees. All Tree items have the same height restrictions; they can only generate from Y levels 58 to 84.OAK is the most common, with a weight of 8/10 (80%).LARGE_OAK has a weight of 2/10 (20%).Every fourth block in this biome has a 25% chance of generating a Tree, meaning every block in this biome has a 6.25% chance of generating a tree.

carving

Options for Carvers in this biome. This option contains key-value pairs.
The key is a Carver ID, and the value is tha chance per chunk that carver will spawn in a chunk. Carvers aren't stored in a weighted pool, Each carver uses an independent calculation, therefore multiple carvers may spawn in the same chunk!

Example Carver Configurationcarving:

 CAVE: 30
 RAVINE: 5
 CAVERN: 5This configuration defined 3 Carvers in this biome:CAVE with a 30% chance of spawning per chunk.RAVINE with a 5% chance of spawning per chunk.CAVERN with a 5% chance of spawning per chunk.

ores

A set of entries that each define an Ore object to generate, how much of it to generate, and the maximum and minimum Y-levels at which veins may generate.
Options:

  • ORE_ID

    - The ID of the Ore object to generate.

    • min - The minimum number of veins to generate per chunk.

    • max - The maximum number of veins to generate per chunk.

    • min-y - The minimum Y-level at which veins may begin.

    • max-y - The maximum Y-level at which veins may begin.

Example Ore Configurationores:

 DIRT:
   min: 0
   max: 1
   min-height: 0
   max-height: 84
 GRAVEL:
   min: 0
   max: 1
   min-height: 0
   max-height: 84
 DIORITE:
   min: 0
   max: 1
   min-height: 0
   max-height: 84
 ANDESITE:
   min: 0
   max: 1
   min-height: 0
   max-height: 84
 GRANITE:
   min: 0
   max: 1
   min-height: 0
   max-height: 84
 COAL_ORE:
   min: 4
   max: 8
   min-height: 0
   max-height: 84
 IRON_ORE:
   min: 2
   max: 6
   min-height: 0
   max-height: 64
 GOLD_ORE:
   min: 1
   max: 3
   min-height: 0
   max-height: 32
 LAPIS_ORE:
   min: 1
   max: 2
   min-height: 0
   max-height: 32
 REDSTONE_ORE:
   min: 1
   max: 2
   min-height: 0
   max-height: 16
 DIAMOND_ORE:
   min: 1
   max: 1
   min-height: 0
   max-height: 16This configuration is a classic, it defines several "deposits" (Dirt, Gravel, Diorite, Andesite, Granite), as well as all Vanilla ores, at standard Y-levels and chances. This example assumes that Ore configs with the corresponding IDs have been set up.

Super-Secret Advanced Options

These options are for advanced users that wish to have more control over biomes.

prevent-smooth

Enabling this option prevents this biome from receiving an additional layer of smoothing on top of the standard 4x4x4 trilinear interpolation. Enabling this option grants finer control over terrain generation, but will introduce terrain artifacts if you don't know how to properly handle the lack of extra smoothing! This option defaults to false, and cannot be abstracted.

ocean

Options for the ocean in this biome.

  • level - Y-value at which to generate oceans. Ocean will be generated at locations that would be air, and are below this Y-value. Defaults to 62.
  • palette - Palette to generate Ocean with. Defaults to a single-block palette containing Water.