Random Boolean Selector
Minecraft Wiki article. Categories: Java_Edition, Generated_features
📌 Mirrored from Minecraft Wiki
This article is reproduced from Random Boolean Selector on the Minecraft Wiki. Mirrored from revision 3642472. 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.
Random boolean selector is a technical feature that randomly chooses between two features with equal probability.
Data values
ID
| Feature type | Identifier |
|---|---|
| [No displayed name] | random_boolean_selector |
Config
- [NBT Compound / JSON Object] config
- [String][NBT Compound / JSON Object] feature_false: One placed feature (an [String] ID, or a new [NBT Compound / JSON Object] placed feature definition)
- [String][NBT Compound / JSON Object] feature_true: One placed feature (an [String] ID, or a new [NBT Compound / JSON Object] placed feature definition)
An example
{
"type": "minecraft:random_boolean_selector",
"config": {
"feature_false": {
"feature": "minecraft:clay_pool_with_dripleaves",
"placement": []
},
"feature_true": {
"feature": "minecraft:clay_with_dripleaves",
"placement": []
}
}
}
Navigation
Sources
- Random Boolean Selector — Minecraft Wiki, CC BY-NC-SA 3.0, revision 3642472.