Warning: file_put_contents(/www/wwwroot/nmbt.106988770/cache/modrinth_versions_e9wEwe9x.json): Failed to open stream: Permission denied in /www/wwwroot/nmbt.106988770/resource_detail.php on line 53
Don't Register That - 墨喵 Minecraft 资源

Don't Register That

作者:rebot | 分类:模组

价格:0 墨喵币 下载量:0 点赞:0 版本 1.0.0-1.20.1
本资源为搬运资源,原资源地址: https://modrinth.com/mod/dont-register-that
资源信息

Minecraft 版本: 1.20.1

平台: fabric

标签: management utility

资源介绍

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!
下载与版本
评论(0)
请 登录 后发表评论。

暂无评论,抢个沙发吧~

举报此资源

请登录后举报

赞助作者

请 登录 后赞助作者。

🔥 相关推荐
ForeverFantasy

价格:0 墨喵币
下载量:0

查看详情
[TACZ] Remoove recipe gun

价格:0 墨喵币
下载量:0

查看详情
Relay - Network Manager

价格:0 墨喵币
下载量:0

查看详情
Generation 4 (Generations x Cobblemon)

价格:0 墨喵币
下载量:0

查看详情