Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Selects and places a feature randomly based on weighted probabilities.
Note
This item requires a format version of at least 1.20.30.
Weighted Random Feature Properties
| Name | Default Value | Type | Description |
|---|---|---|---|
| description | not set | Description item | |
| features | not set | Array of strings | |
| format_version | not set | String |
Description
Description Properties
JSON path: description
| Name | Default Value | Type | Description |
|---|---|---|---|
| identifier | not set | String | The name of this feature in the form 'namespace_name:feature_name'. 'feature_name' must match the filename. |
Samples
Example
"minecraft:weighted_random_feature": {
"format_version": "1.13.0",
"minecraft:weighted_random_feature": {
"description": {
"identifier": "example:select_flower_feature"
},
"features": [
[
"example:white_flower_feature",
1
],
[
"example:red_flower_feature",
2
],
[
"example:blue_flower_feature",
1
],
[
"example:yellow_flower_feature",
4
]
]
}
}