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.