Mineuniverse

Random Selector

Random selector is a technical feature that randomly chooses a feature from a list with chances.

1 min read Updated 2 views
Generated features Java Edition
Advertisement Remove ads with Premium →
Contents (3)
  1. Data values
  2. ID
  3. Config
This article is about the terrain generation feature. For the target selector @r, see Target selectors.
This feature is exclusive to Java Edition.

Random selector is a technical feature that randomly chooses a feature from a list with chances.

Data values

ID

Feature typeIdentifier
[No displayed name]random_selector

Config

Main article: Configured feature
  • [NBT Compound / JSON Object] config
    • [String][NBT Compound / JSON Object] default: One placed feature (an [String] ID, or a new [NBT Compound / JSON Object] placed feature definition) — Used if none of the below features are chosen.
    • [NBT List / JSON Array] features: (Required, but can be empty) A list of placed features from which to randomly choose.
      • [NBT Compound / JSON Object]: A feature and its corresponding chance.
        • [String][NBT Compound / JSON Object] feature: One placed feature (an [String] ID, or a new [NBT Compound / JSON Object] placed feature definition)
        • [Float] chance: The chance of this feature being chosen. Value between 0.0 and 1.0 (inclusive).

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.

Advertisement Remove ads with Premium →

More in Java Edition

View all 57 →
Potion of LuckPotion of LuckA potion of Luck is a potion that provides Luck when used.Projected Random Patchy SquareA projected random patchy square generates a square where each block is randomly or not randomly placed with its probability based on the distance from…Raids.dat formatThe raids.dat file located in the data folder of every Minecraft level is used to store information about the raids in the level. It is stored as a gzip…Random Boolean SelectorRandom boolean selector is a technical feature that randomly chooses between two features with equal probability.Realms Celebration MapRealms Celebration MapRealms Celebration Map is a Marketplace map, designed to be used by subscribers of Realms. The player is placed in a world composed of many minigames…Redstone mechanicsRedstone mechanics describe the general concepts of redstone power, and how redstone-related blocks interact with one another. This article describes…Redstone mechanics/Redstone signal (technical)A redstone signal (also known as redstone power) is a property common to all blocks in the game. Its value, known as signal strength, can range between 0…Replace Single BlockReplace single block is a technical feature that replaces a single block using a list of targets and states. It is not used by the game currently.
Explore the Minecraft Wiki
Blocks, items, mobs, biomes and game mechanics — all in one place.
Wiki home