跳到正文

Don’t Register That

A quick and dirty Minecraft Fabric mod to stop registration of objects into the registries.

收藏

介绍

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

Don’t Register That

A quick and dirty Minecraft Fabric mod to stop registration of objects into the registries.

Use Cases

  • Removing specific items or blocks from the game
  • Preventing problematic or conflicting registrations from other mods
  • Fun experimentation

Configuration

The mod is configured by placing plaintext blacklist files at config/dont_register_that/<registry_namespace>/<registry_path>.txt. Each non-empty line is treated as an identifier, lines starting with the # character are ignored.

For example, to block minecraft:elytra being registered into the minecraft:item registry, you would create a file at config/dont_register_that/minecraft/item.txt with the contents:

minecraft:elytra

It is important to ensure that the client-side and server-side configurations match exactly, or there may be registry mismatches.

Limitations

This mod only prevents registration of objects into the registry. It does not make any adjustments to ensure that Minecraft or other mods handle this gracefully. Use this mod at your own risk, and always back up your worlds between config changes.

Internal Behaviour

Calls to Registry.register(Registry<V> registry, ResourceKey<V> resourceKey, T object) are intercepted and cancelled if the ResourceKey matches a blacklisted entry.

The return value is replaced depending on the registry:

  • For minecraft:item, Items.STONE is returned
  • For minecraft:block, Blocks.STONE is returned
  • For all other registries, the return value is the passed T object

Unregistered Intrusive Holders

Preventing objects being registered often has the side effect of creating unregistered intrusive holders. This is usually an invalid state that will cause a crash on startup, but this mod replaces it with a warning in the log:

[XX:XX:XX] [Render thread/WARN] (Don't Register That) Registry <id> has unregistered intrusive holders, silencing error!

常见问题

Don’t Register That 支持哪些 Minecraft 版本?

Don’t Register That 支持 Minecraft Java 版 1.20.1,可用的加载器:Fabric。下载时注意选择和你游戏版本一致的文件。

Don’t Register That 怎么安装?

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

评论

登录后评论和评分

AlignedCookie88 的其他作品

查看全部 →