Skip to content

Generator: Minecraft: Ore

DerFrZocker edited this page May 7, 2023 · 4 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:ore

The ore generator is the most used generator to generate all kinds of ore features such as iron, coal, diamonds, etc. The generated shape is an ellipsoid, which is randomly rotated on all axis.

Settings

Size

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

The size determines how large a single ore vein gets, the higher the value the larger the vein and the larger the amount of blocks the vein has.

It is important to note, that the size value is not the amount of blocks which are generated, you can find a list with size values and the average amount of blocks generated here. Furthermore, a size value of 2 and lower results in a vein with no blocks / no vein at all.

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_diamond 4 0.5
minecraft:ore_diamond_buried 8 1.0
minecraft:ore_diamond_large 12 0.7
minecraft:ore_iron_middle 9 0.0
minecraft:ore_iron_small 4 0.0
minecraft:ore_iron_upper 9 0.0
minecraft:ore_clay 33 0.0
minecraft:ore_copper 10 0.0
minecraft:ore_gravel 33 0.0
minecraft:ore_emerald 3 0.0

Pictures

Difference between Discard Chance On Air Exposure of 0 and 1:

Ore generation with Discard Chance On Air Exposure set to 0, the diamond ore is visible from a cave Ore generation with Discard Chance On Air Exposure set to 1, the diamond ore is not visible from a cave

File Configuration

Configuration

"size": <integer value>,
"discard_chance_on_air_exposure": <float value>,
"feature_generator_type": "minecraft: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:ore"
}

Clone this wiki locally