

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
- Disables Overworld ore generation before chunk generation.
- Uses a configurable block tag instead of hardcoded ore lists.
- Works with vanilla and many modded ores.
- Does not remove ores placed inside structures as decoration.
- Designed for custom modpacks with alternative ore generation systems.
- Supports datapack and KubeJS tag editing.
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.
- Edition: Minecraft Java
- File type: .jar
- Minecraft version listed: 1.21.1
- How to install: Install the matching mod loader (Forge, Fabric or NeoForge) for your Minecraft version. → Download the .jar. → Put it in the .minecraft/mods folder and launch that loader profile.
- Where to get it: Opens on Modrinth — not every file is mirrored on our own servers.
Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.
- Ships as oregenerationdisabler-1.0.1.jar — drop this file into the mods folder
- Download size: 23 KB
- Download link checked 26 Aug 2026 — working
These come from our own check of the pack file, not from the source page.