? 简介
Minecraft 始终会加载一些基础资源包,例如:
vanilla(游戏的默认资源)
mod_resources(由模组添加的资源)
然而,在玩家首次打开资源包界面之前,游戏的 options.txt 文件仍将 resourcepacks=[] 记录为空。
因此,在创建或加入世界之前打开资源包选择界面时,即使玩家没有任何操作(未添加、移除或重新排序),点击“完成”或按 Esc 键仍会导致 Minecraft 错误地认为新增了资源包,并强制重新加载它们。
此重新加载过程可能非常缓慢,尤其是涉及大量模组资源包时。
✅ 本模组的功能
本模组引入了两项功能以避免这种不必要的时间浪费:
-
如果用户未对资源包列表进行任何实际更改,按 Esc 键或点击“完成”将不再触发重新加载。
-
在资源包界面中额外添加了一个“取消”按钮,旨在退出时不触发任何逻辑。
(然而,在 1.20 版本之后,由于 Minecraft 的技术限制,关闭界面时总是会运行资源包验证,这使得“取消”按钮在大多数情况下行为与“完成”几乎相同。
因此,该“取消”按钮在 1.21.1 NeoForge 版本中被移除。)
额外的“取消”按钮:

注意
- 您完全可以将此模组添加到您的整合包中;
- 本项目遵循 Nova Relay License 1.0。
? Introduction
Minecraft always loads some base resource packs such as:
vanilla (the game's default resources)
mod_resources (resources added by mods)
However, before the player opens the resource pack screen for the first time, the game's options.txt still records resourcepacks=[] as empty.
So when opening the resource pack selection screen before creating or joining a world, even if the player does nothing (no adding, removing, or reordering), clicking "Done" or pressing Esc will still cause Minecraft to incorrectly think new resource packs were added, and it will forcibly reload them.
This reload process can be very slow, especially when many modded resource packs are involved.
✅ What This Mod Does
This mod introduces two features to avoid this unnecessary waste of time:
-
If the user hasn’t made any actual changes to the resource pack list, pressing Esc or clicking “Done” will no longer trigger a reload.
-
An extra "Cancel" button was added to the resource pack screen, intended to exit without triggering any logic at all.
(However, after 1.20, due to technical limitations in Minecraft, resource pack validation always runs when the screen closes, making the Cancel button behave nearly the same as Done in most cases.
As a result, the Cancel button was removed in the 1.21.1 NeoForge version.)
The additional "Cancel" button:

ATTENTION
- You DEFINITELY CAN add the mod to your modpack;
- The project adheres to Nova Relay License 1.0.
评论 0
登录后参与评分
还没有评论,来抢沙发吧