Simple random selector
This feature is exclusive to Java Edition.
Simple random selector is a technical feature that randomly chooses a feature from a list with each having an equal chance.
Data values
ID
| Feature type | Identifier |
|---|---|
| [No displayed name] | simple_random_selector |
Config
Main article: Configured feature
- [NBT Compound / JSON Object] config
- [String][NBT Compound / JSON Object][NBT List / JSON Array] features: Any number of placed feature(s) (an [String] ID, or a new [NBT Compound / JSON Object] placed feature definition, or a [String] tag with
#, or an [NBT List / JSON Array] array containing either [String] IDs or new [NBT Compound / JSON Object] definitions in the same data type); Cannot be empty — Features to choose from.
- [String][NBT Compound / JSON Object][NBT List / JSON Array] features: Any number of placed feature(s) (an [String] ID, or a new [NBT Compound / JSON Object] placed feature definition, or a [String] tag with
An example
{
"type": "minecraft:simple_random_selector",
"config": {
"features": [
{
"feature": {
"type": "minecraft:coral_tree",
"config": {}
},
"placement": []
},
{
"feature": {
"type": "minecraft:coral_claw",
"config": {}
},
"placement": []
},
{
"feature": {
"type": "minecraft:coral_mushroom",
"config": {}
},
"placement": []
}
]
}
}
| |||||||||||||||||||||||||||
| |||||||||||||||||||||||||||