跳转至

Feature Rules

文档版本:1.21.50.25

Each feature rule controls exactly one feature and serves as the root of a chain of feature data.

架构

feature_rules:
{
  format_version "format_version"
  feature_rules "minecraft:feature_rules"
}
format_versionformat_version
format_version:
string
minecraft:feature_rulesfeature_rules
feature_rules:
{
  object "description" : opt
  {
    identifier "identifier"
    string "places_feature" : opt
  }
  object "conditions" : opt
  {
    string "placement_pass" : opt
    filters "minecraft:biome_filter"
  }
  object "distribution" : opt
  {
    string "coordinate_eval_order" : opt
    0 "iterations"
    0 "scatter_chance"
    object "scatter_chance" : opt
    {
      number "numerator" : opt
      number "denominator" : opt
    }
    0 "x"
    object "x" : opt
    {
      number "numerator" : opt
      number "denominator" : opt
    }
    object "x" : opt
    {
      string "distribution" : opt
      array "extent" : opt
      {
        number "<any array element>" : opt
      }
    }
     "z" : opt
     "y" : opt
  }
}
descriptionobject
The description of this feature rule.
description
identifieridentifier
The name of this feature in the form namespace_name:feature_name. feature_name must match the filename.
identifier:
string
places_featurestring
Named reference to the feature controlled by this rule.
conditionsobject
Parameters to control where and when the feature will be placed.
conditions
placement_passstring
When the feature should be placed relative to others. Earlier passes in the list are guaranteed to occur before later passes. Order is not guaranteed within each pass.
minecraft:biome_filterfilters
minecraft:biome_filter条件。Parameters to control where and when the feature will be placed.
distributionobject
Parameters controlling the initial scatter of the feature.
distribution
coordinate_eval_orderstring
The order in which coordinates will be evaluated. Should be used when a coordinate depends on another. If omitted, defaults to xzy.
iterations0
Number of scattered positions to generate.
0:
string
0:
number
scatter_chance0
Probability (0-100] that this scatter will occur. Not evaluated each iteration; either no iterations will run, or all will.
scatter_chanceobject
Probability numerator / denominator that this scatter will occur. Not evaluated each iteration; either no iterations will run, or all will.
scatter_chance
numeratornumber
UNDOCUMENTED.
denominatornumber
UNDOCUMENTED.
x0
Expression for the coordinate (evaluated each iteration). Mutually exclusive with random distribution object below.
xobject
Distribution for the coordinate (evaluated each iteration). Mutually exclusive with Molang expression above.
x
numeratornumber
UNDOCUMENTED.
denominatornumber
UNDOCUMENTED.
xobject
UNDOCUMENTED.
x
distributionstring
Distribution type
extentarray
Represents the range of values on which that distribution operates, from minimum to maximum.
extent
<any array element>number
z
UNDOCUMENTED.
y
UNDOCUMENTED.