Minecraft:Random Selector
From SAS Gaming Wiki
More actions
|
For the {{{Description}}} of the same name, see [[{{{Destination}}}]]. |
Random selector is a technical Minecraft:feature that randomly chooses a feature from a list with chances.
Data values
ID
Config
<section begin="config"/>
- Template:Nbt
- Template:NbtTemplate:Nbt: Template:Json ref — Used if none of the below features are chosen.
- Template:Nbt: (Required, but can be empty) A list of placed features from which to randomly choose.
- Template:Nbt: A feature and its corresponding chance.
- Template:NbtTemplate:Nbt: Template:Json ref
- Template:Nbt: The chance of this feature being chosen. Value between 0.0 and 1.0 (inclusive).
- Template:Nbt: A feature and its corresponding chance.
The defined features can either reference a placed feature directly, or can reference a configured feature by nesting another "feature" node within. For more information, see this page on the two allowed types of feature definitions.
<section end="config"/>
Template:Collapse <syntaxhighlight lang="json"> {
"type": "minecraft:random_selector",
"config": {
"default": {
"feature": "minecraft:patch_grass_jungle",
"placement": []
},
"features": [
{
"chance": 0.05,
"feature": "minecraft:fancy_oak_checked"
},
{
"chance": 0.15,
"feature": "minecraft:jungle_bush"
},
{
"chance": 0.7,
"feature": "minecraft:mega_jungle_tree_checked"
}
]
}
} </syntaxhighlight> Template:Collapse
Template:Navbox generated features
Minecraft:fr:Sélecteur aléatoire Minecraft:pt:Seletor aleatório