Simple Random Selector
Minecraft Wiki article. Categories: Java_Edition, Generated_features
📌 Mirrored from Minecraft Wiki
This article is reproduced from Simple Random Selector on the Minecraft Wiki. Mirrored from revision 3697281. It is licensed CC BY-NC-SA 3.0 by the Minecraft Wiki contributors — not under the Codex’s CC BY-SA 4.0, and it may not be used commercially. Edits belong upstream, not here.
On this page
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
- [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": []
}
]
}
}
Navigation
Sources
- Simple Random Selector — Minecraft Wiki, CC BY-NC-SA 3.0, revision 3697281.