跳到正文

Ore Generation Disabler

作者:Atmos Studio

Disables Overworld ore generation using a configurable block tag

收藏

截图

介绍

中文介绍正在准备中,下面暂时显示原文。

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.

常见问题

Ore Generation Disabler 支持哪些 Minecraft 版本?

Ore Generation Disabler 支持 Minecraft Java 版 1.21.1,可用的加载器:NeoForge。下载时注意选择和你游戏版本一致的文件。

Ore Generation Disabler 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 NeoForge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:客户端和服务端都要装。

评论

登录后评论和评分

Atmos Studio 的其他作品

查看全部 →