2021-06-06 10:07:19 +00:00
{
2021-06-08 21:19:30 +02:00
"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." ,
2021-06-06 10:07:19 +00:00
"type" : "object" ,
"additionalProperties" : false ,
2021-06-08 21:19:30 +02:00
"required" : [ "description" , "features" ] ,
2021-06-06 10:07:19 +00:00
"properties" : {
"description" : {
"title" : "Description" ,
2021-06-16 16:19:12 +02:00
"description" : "UNDOCUMENTED" ,
2021-07-01 11:35:53 +02:00
"$comment" : "UNDOCUMENTED" ,
2021-06-06 10:07:19 +00:00
"type" : "object" ,
2021-06-08 17:12:21 +02:00
"required" : [ "identifier" ] ,
2021-06-06 10:07:19 +00:00
"properties" : {
"identifier" : {
"title" : "Identifier" ,
2021-06-08 17:06:03 +02:00
"description" : "The name of this feature in the form `namespace_name:feature_name`. `feature_name` must match the filename." ,
2021-06-06 10:07:19 +00:00
"type" : "string" ,
"$ref" : "../../../../general/feature/identifier.json"
}
}
2021-06-08 21:19:30 +02:00
} ,
"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"
}
]
}
2021-06-06 10:07:19 +00:00
}
}
}