HomeJavaModsOre Generation Disabler
Ore Generation Disabler
Ore Generation Disabler — screenshot 1

Ore Generation Disabler

This mod was inspired by the removal of the WorldGen class from KubeJS, which made it much harder for modpack creators to manage and disable ore generation through scripts. Ore Generation Disabler was created as a lightweight alternative for controlling Overworld ore generation in modern NeoForge modpacks.

The mod removes ore-generating worldgen features before chunks are generated. Instead of replacing blocks after generation, it prevents matching ore features from running in the first place. Ores are controlled through a block tag:

#oregenerationdisabler:disabled_overworld_ores

Any ore block added to this tag will be detected and used to disable the worldgen features that generate it.

Features

How to configure

After the first launch, the mod creates its config files.

Example

You can also add blocks to the tag using KubeJS:

ServerEvents.tags('block', event => {
  event.add('oregenerationdisabler:disabled_overworld_ores', [
    'minecraft:iron_ore',
    'minecraft:deepslate_iron_ore',
    'minecraft:diamond_ore',
    'minecraft:deepslate_diamond_ore'
  ])
})

Important notes

This mod affects newly generated chunks only. Existing chunks will not be changed.

Originally made for my personal modpack, this mod was later released to help other modpack developers deal with ore generation after WorldGen was removed from KubeJS. Feel free to fork it, improve it, or adapt it for your own projects.

Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

Verified by MCModsHub

These come from our own check of the pack file, not from the source page.

Explore more