Feature Rules¶
文档版本:1.21.50.25
Each feature rule controls exactly one feature and serves as the root of a chain of feature data.
架构¶
format_version
:format_version
minecraft:feature_rules
:feature_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
}
}
description
:object- The description of this feature rule.
description
identifier
:identifier- The name of this feature in the form
namespace_name:feature_name
.feature_name
must match the filename.
places_feature
:string- Named reference to the feature controlled by this rule.
conditions
:object- Parameters to control where and when the feature will be placed.
conditions
placement_pass
:string- 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_filter
:filtersminecraft:biome_filter
条件。Parameters to control where and when the feature will be placed.
distribution
:object- Parameters controlling the initial scatter of the feature.
distribution
coordinate_eval_order
:string- The order in which coordinates will be evaluated. Should be used when a coordinate depends on another. If omitted, defaults to
xzy
.
iterations
:0- Number of scattered positions to generate.
scatter_chance
:0- Probability (0-100] that this scatter will occur. Not evaluated each iteration; either no iterations will run, or all will.
scatter_chance
:object- Probability numerator / denominator that this scatter will occur. Not evaluated each iteration; either no iterations will run, or all will.
scatter_chance
numerator
:number- UNDOCUMENTED.
denominator
:number- UNDOCUMENTED.
x
:0- Expression for the coordinate (evaluated each iteration). Mutually exclusive with random distribution object below.
x
:object- Distribution for the coordinate (evaluated each iteration). Mutually exclusive with Molang expression above.
x
numerator
:number- UNDOCUMENTED.
denominator
:number- UNDOCUMENTED.
x
:object- UNDOCUMENTED.
x
distribution
:string- Distribution type
extent
:array- Represents the range of values on which that distribution operates, from minimum to maximum.
extent
<any array element>
:number
z
- UNDOCUMENTED.
y
- UNDOCUMENTED.