跳转至

未命名

文档版本:1.21.0.24

架构

0:
{
   "format_version" : opt
  object "minecraft:feature_rules" : opt
  {
    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
      }
       "z" : opt
       "y" : opt
    }
  }
}
format_version
Specifies the version of the game this entity was made in. Minimum supported version is 1.13.0. Current supported version is 1.13.0.
minecraft:feature_rulesobject
Each feature rule controls exactly one feature and serves as the root of a chain of feature data.
minecraft:feature_rules
descriptionobject
UNDOCUMENTED.
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.
z
UNDOCUMENTED.
y
UNDOCUMENTED.
feature_rules:
{
  format_version "format_version"
}
format_versionformat_version
format_version:
string