Skip to content

Generator: Minecraft: Scattered Ore

DerFrZocker edited this page May 7, 2023 · 5 revisions

Table of Contents

  1. Description
  2. Settings
    1. Size
    2. Discard Chance On Air Exposure
  3. Example Settings
  4. Pictures
  5. File Configuration

Description

Key: minecraft:scattered_ore

The scattered ore generator is the mostly used to generate ancient debris. It generates single blocks of ores around a center block. Were each additional-generated block has the chance to generated further away from the origin block, up to a maximum area of 15 x 15 x 15.

Settings

Size

Value-Type: Integer
Value-Range: [0, ∞)

Other than by the minecraft:ore generator, by the scattered ore generator the size directly indicates how many blocks of ores are maximal generated. With the amount of blocks being generated laying between 0 and the set size.

Discard Chance On Air Exposure

Value-Type: Float
Value-Range: [0, 1]

The discard chance on air exposure controls, how likely it is that an ore block has air nearby and is thereby visible from a cave or similar. 0 hereby means there is 0% chance the ore is discarded and will be placed regardless if air is nearby or not, 0.5 means there is a 50% chance and 1 results in a 100% chance for the ore being discarded, when air is nearby.

This setting can be used if an ore vein should not be able to be spotted from a cave, but rather from strip mining or similar.

Example Settings

Feature Size Discard Chance On Air Exposure
minecraft:ore_ancient_debris_large 3 1.0
minecraft:ore_debris_small 2 1.0

Pictures

File Configuration

Configuration

"size": <integer value>,
"discard_chance_on_air_exposure": <float value>,
"feature_generator_type": "minecraft:scattered_ore"

Full Example

"feature_generator_configuration": {
  "size": {
    "size_type": "feature:fixed_double_to_integer",
    "value": 4.0
  },
  "discard_chance_on_air_exposure": {
    "discard_chance_on_air_exposure_type": "feature:fixed_float",
    "value": 0.5
  },
  "feature_generator_type": "minecraft:scattered_ore"
}

Clone this wiki locally