Minecraft:Simple Random Selector: Difference between revisions
From SAS Gaming Wiki
More actions
Sync: new page from Minecraft Tag: New redirect |
Sync: updated from Minecraft Tag: Removed redirect |
||
| Line 1: | Line 1: | ||
{{Exclusive|java}} | |||
{{ | '''Simple random selector''' is a technical [[Minecraft:feature]] that randomly chooses a feature from a list with each having an equal chance. | ||
== Data values == | |||
=== ID === | |||
{{ID table | |||
|firstcolumnname=Feature type | |||
|displayname=[No displayed name] | |||
|nameid=simple_random_selector | |||
|foot=1 | |||
}} | |||
=== Config === | |||
{{main|Configured feature}} | |||
<section begin="config"/><div class="treeview"> | |||
* {{nbt|compound|config}} | |||
** {{nbt|string}}{{nbt|compound}}{{nbt|list|features}}: {{json ref|placed feature|tag=1|inline=1}}; Cannot be empty — Features to choose from. | |||
</div><section end="config"/> | |||
{{Collapse|title=An example|outerstyle=margin: 0.5rem 0|head=1}} | |||
<syntaxhighlight lang="json"> | |||
{ | |||
"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": [] | |||
} | |||
] | |||
} | |||
} | |||
</syntaxhighlight> | |||
{{Collapse|tail=1}} | |||
== Navigation == | |||
{{Navbox generated features}} | |||
[[Minecraft:fr:Sélecteur aléatoire simple]] | |||
[[Minecraft:pt:Seletor aleatório simples]] | |||
Latest revision as of 11:12, 1 August 2026
Template:Exclusive Simple random selector is a technical Minecraft:feature that randomly chooses a feature from a list with each having an equal chance.
Data values
ID
Config
<section begin="config"/>
- Template:Nbt
- Template:NbtTemplate:NbtTemplate:Nbt: Template:Json ref; Cannot be empty — Features to choose from.
<section end="config"/>
Template:Collapse <syntaxhighlight lang="json"> {
"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": []
}
]
}
} </syntaxhighlight> Template:Collapse
Template:Navbox generated features
Minecraft:fr:Sélecteur aléatoire simple Minecraft:pt:Seletor aleatório simples