Skip to content

Custom Ore Generation

Eivind Norling edited this page Sep 28, 2021 · 8 revisions

Custom Ore Generation using Ore-Tweaker

Intro

Ore Tweaker has the option to let you add your own custom ores spawn in the world. This allows you to make any block generate in veins underground.

Customizing Ore-Generation

Customizing ore-generation is fairly easy and can be done by adding new files to the ../config/oretweaker/data/ folder.
These files can be named pretty much anything as long as they have the .json name extension.

Example:

The example below will add very rare bone block veins spawning close to bedrock.

{
  "oreConfig": [
    {
      "ore": "minecraft:bone_block",
      "filler": "minecraft:stone",
      "minY": 1,
      "maxY": 12,
      "maxVeinSize": 8,
      "spawnRate": 2.0,
      "biomeBlacklist": [],
      "biomeWhitelist": []
    }
  ]
}

img

The example below will add huge lava pools to the surface of desert biomes.

{
  "oreConfig": [
    {
      "ore": "minecraft:lava",
      "filler": "minecraft:sand",
      "minY": 56,
      "maxY": 64,
      "maxVeinSize": 64,
      "spawnRate": 10.0,
      "biomeBlacklist": [],
      "biomeWhitelist": ["SANDY"]
    }
  ]
}

img

The example below will add glass blocks spawning in oak trees.

{
  "oreConfig": [
    {
      "ore": "minecraft:glass",
      "filler": "minecraft:oak_leaves",
      "minY": 60,
      "maxY": 70,
      "maxVeinSize": 24,
      "spawnRate": 50.0,
      "biomeBlacklist": [],
      "biomeWhitelist": []
    }
  ]
}

img

The example below will add emerald blocks generating in The End. Since there is only end_stone spawning naturally in The End there is no need for a biome filter.

{
  "oreConfig": [
    {
      "ore": "minecraft:emerald_block",
      "filler": "minecraft:end_stone",
      "minY": 0,
      "maxY": 128,
      "maxVeinSize": 16,
      "spawnRate": 50.0,
      "biomeBlacklist": [],
      "biomeWhitelist": []
    }
  ]
}

img

The example below will add multiple ore blocks generating around the The End platform. Uses a biome filter cause air blocks are found everywhere.

You can have several different types of ores in the same file, so you don't need to create new file per ore you want to tweak. You can organize it however you like

{
  "oreConfig": [
    {
      "ore": "minecraft:iron_ore",
      "filler": "minecraft:air",
      "minY": 10,
      "maxY": 70,
      "maxVeinSize": 64,
      "spawnRate": 5.0,
      "biomeBlacklist": [],
      "biomeWhitelist": ["END"]
    },
    {
      "ore": "minecraft:coal_ore",
      "filler": "minecraft:air",
      "minY": 10,
      "maxY": 70,
      "maxVeinSize": 32,
      "spawnRate": 5.0,
      "biomeBlacklist": [],
      "biomeWhitelist": ["END"]
    },
    {
      "ore": "minecraft:gold_ore",
      "filler": "minecraft:air",
      "minY": 10,
      "maxY": 70,
      "maxVeinSize": 24,
      "spawnRate": 5.0,
      "biomeBlacklist": [],
      "biomeWhitelist": ["END"]
    },
    {
      "ore": "minecraft:diamond_ore",
      "filler": "minecraft:air",
      "minY": 10,
      "maxY": 70,
      "maxVeinSize": 16,
      "spawnRate": 5.0,
      "biomeBlacklist": [],
      "biomeWhitelist": ["END"]
    }
  ]
}

img**

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