Files
minecraft-bedrock-json-schemas/source/behavior/features/1.13.0/features/minecraft.weighted_random_feature.json
2021-07-01 16:37:41 +02:00

44 lines
1.6 KiB
JSON

{
"title": "Weighted Random Feature",
"description": "'minecraft:weighted_random_feature' randomly selects and places a feature based on a weight value. Weights are relative, with higher values making selection more likely.\nSucceeds if: The selected feature is placed.\nFails if: The selected feature fails to be placed.",
"type": "object",
"additionalProperties": false,
"required": ["description", "features"],
"properties": {
"description": {
"title": "Description",
"description": "UNDOCUMENTED",
"$comment": "UNDOCUMENTED",
"type": "object",
"required": ["identifier"],
"properties": {
"identifier": {
"title": "Identifier",
"description": "The name of this feature in the form `namespace_name:feature_name`. `feature_name` must match the filename.",
"type": "string",
"$ref": "../../../../general/feature/identifier.json"
}
}
},
"features": {
"title": "Features",
"description": " Collection of weighted features that placement will select from.",
"type": "array",
"minItems": 1,
"items": {
"title": "Feature",
"description": "Named reference to a feature.",
"type": "array",
"items": [
{ "title": "Feature", "description": "Named reference to a feature.", "$ref": "../../../../general/feature/identifier.json" },
{
"title": "Weight",
"description": "Weight used in random selection. Value is relative to other weights in the collection.",
"type": "number"
}
]
}
}
}
}