Skip to content

Tweaking Ore Generation | Ore Tweaker 3

Eivind Norling edited this page May 1, 2023 · 1 revision

Tweaking Ore Generation using Ore-Tweaker

Intro

Ore Tweaker has the option to let you tweak how ores spawn in the world. This is achieved by disabling the original ore-generation and replacing it with our own custom ore generation settings.

Tweaking Modded Ores

Ore Tweaker works with some mods that use the standard vanilla Minecraft ore generation like Thermal Expansion. Mods that use their own custom generation can not be tweaked by default.

Most mods allow you to disable their world-gen in their own config files so if you can do it you can then add your own Custom Ore-Generation by following this guide here.

Tweaking Ore-Generation

Tweaking ore-generation is fairly easy and can be done by editing the files inside ../config/oretweaker/data/.

Example:

The example below will first disable both coal and iron ores normal world-generation and then replace it with our own custom generation as defined below.
coal_ore.json

{
  "oreConfig": [
    {
      "ore": "minecraft:coal_ore",
      "fillers": [
        "STONE_ORE_REPLACEABLES"
      ],
      "distribution": "UNIFORM",
      "minY": 136,
      "maxY": 256,
      "maxVeinSize": 17,
      "spawnRate": 30.0,
      "discardChanceOnAirExposure": 0.0,
      "biomeFilters": {
        "biomeBlacklist": [],
        "biomeWhitelist": [
          "OVERWORLD"
        ]
      },
      "replace": true
    }
  ]
}
  • Coal ores in the overworld will now only spawn between y-136 and y-256 in veins up to 17 block large. The world-generator will attempt to spawn these veins 30 times per chunk with a uniform distribution. It will replace the vanilla minecraft coal generation with its own.

Multiple spawns for same ore

You can add multiple spawns for the same ore. In this case iron will spawn in huge veins in mountains, small veins inside desert sandstone and some extra iron ore spawns in badlands biomes.

{
  "oreConfig": [
    {
      "ore": "minecraft:iron_ore",
      "fillers": [
        "STONE_ORE_REPLACEABLES"
      ],
      "distribution": "TRIANGLE",
      "minY": 64,
      "maxY": 384,
      "maxVeinSize": 30,
      "spawnRate": 15.0,
      "discardChanceOnAirExposure": 0.0,
      "biomeFilters": {
        "biomeBlacklist": [],
        "biomeWhitelist": [
          "MOUNTAIN"
        ]
      },
      "replace": true
    },
    {
      "ore": "minecraft:iron_ore",
      "fillers": [
        "minecraft:sandstone"
      ],
      "distribution": "TRIANGLE",
      "minY": 55,
      "maxY": 70,
      "maxVeinSize": 6,
      "spawnRate": 30.0,
      "discardChanceOnAirExposure": 1.0,
      "biomeFilters": {
        "biomeBlacklist": [],
        "biomeWhitelist": [
          "DESERT"
        ]
      },
      "replace": true
    },
    {
      "ore": "minecraft:iron_ore",
      "fillers": [
        "STONE_ORE_REPLACEABLES"
      ],
      "distribution": "UNIFORM",
      "minY": 32,
      "maxY": 256,
      "maxVeinSize": 9,
      "spawnRate": 50.0,
      "discardChanceOnAirExposure": 0.0,
      "biomeFilters": {
        "biomeBlacklist": [],
        "biomeWhitelist": [
          "minecraft:badlands",
          "minecraft:eroded_badlands",
          "minecraft:wooded_badlands"
        ]
      },
      "replace": true
    }
  ]
}

Wiki Pages


Intro


Information

Ore Tweaker 2

Ore Tweaker 3


Configuring

Ore Tweaker 2

Ore Tweaker 3


Debugging


Supported Versions

Version Supported
1.18.x-3.0.x ✔️
1.17.x-2.6.x ✔️
1.16.5-2.6.x ✔️
1.12.x-1.x.x
1.11.x-1.x.x
1.10.x-1.x.x
1.9.x-1.x.x
1.8.x-1.x.x
1.7.x-1.x.x

Versions marked with ❌ is no longer supported. Help to configure these version will not be provided.

Clone this wiki locally