Pack Doctor
某些模组自带的集成加载缓慢、存在故障,或者根本不需要,且没有提供关闭选项。通常你的选择只有删除整个模组或从它的 jar 文件中编辑掉相关类。
Pack Doctor 将这些操作转化为配置行。
修复内容
一个导致世界加入界面卡顿的 JEI 插件。 JEI 本身没有针对单个插件的开关。在一个真实的整合包中,某个模组的 Arcane Anvil 集成因为将游戏中的每个物品与每个法术进行交叉匹配,导致每次加入世界都增加 42 秒。将该插件加入黑名单后,JEI 其他功能正常运行——仅该模组的配方不再出现在浏览器中。
[jei]
pluginBlacklist = ["irons_spellbooks:jei_plugin"]
接受完整的插件 UID,或仅使用模组 ID 以阻止该模组注册的所有插件。
不知道是哪个插件出了问题。 开启计时功能后,Pack Doctor 会记录每个 JEI 插件的运行时间(按耗时最长优先),并写入 config/packdoctor-timings.txt。
[jei]
logJeiPlugins = true
autoBlacklistOverSeconds = 15.0
autoBlacklistOverSeconds 是一个安全网:如果某个插件在上次启动时耗时超过此值,它将在下次启动时自动被跳过并记录日志。设置为 0 可禁用此功能。
拖慢生存模式背包的合成书。 某个模态在分类配方时抛出异常,会导致原版合成书无限重建——创造模式下的物品栏正常,但生存模式卡顿,且日志中没有任何线索指向原因。
[recipeBook]
disableRecipeBook = false
recipeBlacklist = ["aoa3"]
完全禁用合成书,或仅从其中移除某个模组的配方而保留其余部分正常工作。JEI 不受影响——这些配方仍然会在 JEI 中显示。
强制在加入游戏时给予玩家指南书的模组。 许多模组硬编码了“玩家首次加入时给予此书”的逻辑,且无配置开关。
# packdoctor-common.toml - 服务端
[items]
blockedJoinItems = ["patchouli:guide_book", "simplyswords:runic_grimoire"]
Patchouli 的书都是同一个物品,仅 NBT 数据不同,因此指定某本书只会阻止该书,而非所有 Patchouli 书籍。每次移除都会记录物品、堆叠数量以及匹配的规则,以便追踪玩家报告缺失物品的责任规则。
警告: 此功能会从玩家物品栏中永久删除物品,且无法撤销。通配符形式 "mymod:*" 匹配 该模组注册的所有物品,包括玩家制作的装备和穿戴的盔甲。故意拒绝不带冒号的纯模组 ID,以防止你通过复制 [jei] 部分的语法来启用整个模组的删除。
FTB Library 的侧边栏按钮。 覆盖在物品栏界面上的按键风格图标。FTB Library 未提供切换开关。
[ui]
hideSidebarButtons = true
任务书物品仍可使用;你仅失去叠加层快捷方式。
客户端或服务端
两者均可独立使用。JEI、合成书和 UI 选项为客户端功能;加入物品拦截器为服务端功能。该模组无需在两端同时安装——客户端可以对 vanilla-Forge 服务器使用 JEI 黑名单,服务端也可以使用物品拦截器而不要求玩家安装任何内容。
安全性
每个 mixin 均使用 defaultRequire: 0。如果未来版本的 JEI 或 Minecraft 移动了其中一个目标,Pack Doctor 会降级为不执行任何操作,而不是导致游戏崩溃。JEI 是可选依赖项——如果没有它,JEI 的 mixins 将根本不应用。
Pack Doctor
Some mods ship integrations that are slow, broken, or simply not wanted, and give you no way to
turn them off. Your options are normally to delete the whole mod or edit classes out of its jar.
Pack Doctor turns those into config lines.
What it fixes
A single JEI plugin costing you the world-join screen. JEI has no per-plugin toggle. In one
real pack, one mod's Arcane Anvil integration added 42 seconds to every world join, because it
cross-products every item in the game against every spell. Blacklist that one plugin and JEI works
normally otherwise - only that mod's recipes stop appearing in the browser.
[jei]
pluginBlacklist = ["irons_spellbooks:jei_plugin"]
Accepts a full plugin UID, or a bare mod id to block everything that mod registers.
Not knowing which plugin is the problem. Turn on timing and Pack Doctor records how long every
JEI plugin took, worst-first, to config/packdoctor-timings.txt.
[jei]
logJeiPlugins = true
autoBlacklistOverSeconds = 15.0
autoBlacklistOverSeconds is a safety net: any plugin that took longer than this on the previous
launch is skipped automatically on the next one, and logged. Set it to 0 to disable.
A recipe book that stalls the survival inventory. A mod that throws while categorising recipes
makes the vanilla recipe book rebuild endlessly - creative inventory stays fine, survival crawls,
and nothing in the log points at the cause.
[recipeBook]
disableRecipeBook = false
recipeBlacklist = ["aoa3"]
Disable the recipe book entirely, or drop just one mod's recipes from it and keep the rest working.
JEI is unaffected either way - those recipes still show up in JEI.
Mods that force a guidebook into your hands on join. Many hardcode "give the player this book
the first time they join" with no config toggle.
# packdoctor-common.toml - server side
[items]
blockedJoinItems = ["patchouli:guide_book", "simplyswords:runic_grimoire"]
Patchouli books are all the same item and differ only by NBT, so naming a specific book blocks that
one book, not every Patchouli book. Every removal is logged with the item, stack size, and the rule
that matched, so a player reporting missing items can be traced back to the rule responsible.
Warning: this feature deletes items from player inventories permanently, with no undo. The
wildcard form "mymod:*" matches everything that mod registers, including gear the player
crafted and armour they are wearing. A bare mod id with no colon is rejected on purpose, so you
cannot enable whole-mod deletion by copying the syntax from the [jei] section.
FTB Library's sidebar buttons. The keycap-style icons drawn over the inventory screen. FTB
Library ships no toggle for them.
[ui]
hideSidebarButtons = true
The quest book item still works; you only lose the overlay shortcut.
Client or server
Both, independently. The JEI, recipe book and UI options are client-side; the join-item blocker is
server-side. The mod does not need to be installed on both ends - a client can use the JEI
blacklist against a vanilla-Forge server, and a server can use the item blocker without requiring
anything of its players.
Safety
Every mixin uses defaultRequire: 0. If a future JEI or Minecraft version moves one of the
targets, Pack Doctor degrades to doing nothing rather than crashing your game. JEI is an optional
dependency - without it, the JEI mixins simply never apply.
评论 0
登录后参与评分
还没有评论,来抢沙发吧