|
|
ThatOrThis (ThatOrThis)Github |相关wiki |源站链接支持: fabricA Fabric mod for choosing between sets of Fabric mods.
*What is this*
_ThatOrThis_主要是为模组包开发人员设计的。它通过黑客手段进入Fabric Loader,允许从额外的可选择目录中加载模组。这允许最终用户选择要加载到他们的模组包中的模组,或者解决不兼容的模组集合。
从技术上讲,ThatOrThis受到了和的启发,它滥用了Fabric Loader的“LanguageAdapter”功能。这使得该模组的部分代码可以在Fabric Loader开始初始化大多数其他模组之前运行。然后,它读取配置,解析要加载的额外模组,并通过Java反射魔法将它们注入加载器中。
*功能*
- 从除了默认的“.minecraft/mods”之外的目录加载模组
- 让最终用户选择他们想要的功能(例如为了使用着色器而加载OptiFabric或者加载Sodium来优化性能)
- 运行时检查额外模组的依赖性和冲突
- 可通过ModMenu集成访问的可配置设置屏幕
- 选项名称和工具提示支持格式代码和翻译键
*用法*
*对于手动安装该模组的普通用户*
将该模组与和一起安装到你的mods文件夹中。
启动Minecraft并通过ModMenu打开设置屏幕。按照说明进行操作。
如果以这种方式配置,ThatOrThis将在默认(受限制的)规则集下运行。如果您需要更多功能而不仅仅是切换单个模组,请参阅“模组包开发人员”部分。
*对于安装了包含该模组的模组包的用户*
通过ModMenu打开设置屏幕。按照需要更改设置。完成。
请注意,新的设置在重新启动游戏之前不会生效。
*对于希望将该模组集成到模组包中的模组包开发人员*
将该模组与和一起安装到你的mods文件夹中。
然后,在配置文件夹中创建\'thatorthis\'文件夹,并在其中创建\'rules.json\'文件。如果操作正确,它的路径应该是\'.minecraft/config/thatorthis/rules.json\'。
\'rules.json\'定义了所有可用的设置及其选项。其规范可在[这里][rules_example_json5]找到。
最后,按照规则文件中定义的方式将模组放入mods文件夹的子目录中。
该模组是开源的,并且[MIT许可证][mit],这意味着只要在你的模组包中归功于我(当然还有其他模组的作者),你就可以在不需要征得许可的情况下将其包含到你的模组包中并重新分发。
*兼容性*
- ThatOrThis需要最新版本的Minecraft ~~和Fabric Loader~~才能工作。
Forge支持永远不会计划中;请使用[ModDirector][moddirector]代替。目前只支持Fabric Loader v0.11.x。对于ThatOrThis v0.3.0,将支持v0.12.x。
- ModMenu和Fabric API是可选的,这意味着在给定有效的‘rules.json’和‘choices.json’的情况下,ThatOrThis将能够正常工作。
然而,它们需要用于游戏内设置屏幕。你可以通过ThatOrThis加载它们,但不建议这样做。
- 通过ThatOrThis加载编程语言支持模组(例如[Kotlin][fabric-language-kotlin]、[Scala][fabric-language-scala]和[Groovy][fabric-language-groovy])**不建议**。
它们可能会工作,但这个功能尚未经过测试;尽可能将它们放到模组目录中。
- Modsmod与ThatOrThis对Fabric Loader执行的_完全相同的操作_,因此与对方*不兼容*。
注意:ThatOrThis仅意图用于小型、客户端模组。如果规则和选项设计不谨慎,可能会导致崩溃和/或服务器/世界不兼容。在安装该模组之前和之后,请彻底测试你的模组包。
modsmod: https://www.modrinth.com/mod/modsmod]链接
grossfabrichacks: https://github.com/Devan-Kerman/GrossFabricHacks]链接
modmenu: https://modrinth.com/mod/modmenu]链接
fabric-api: https://modrinth.com/mod/fabric-api]链接
rules_example_json5: https://github.com/EZForever/ThatOrThis/blob/master/rules.example.json5]链接
mit: https://github.com/EZForever/ThatOrThis/blob/master/LICENSE.txt]链接
moddirector: https://www.curseforge.com/minecraft/mc-mods/moddirector]链接
fabric-language-kotlin: https://www.curseforge.com/minecraft/mc-mods/fabric-language-kotlin]链接
fabric-language-scala: https://www.curseforge.com/minecraft/mc-mods/fabric-language-scala]链接
fabric-language-groovy: https://www.curseforge.com/minecraft/mc-mods/fabric-language-groovy]链接
来自Modrinth所有游戏版本1.16.51.171.17.1所有类型fabric0.2.6+1.16thatorthis-0.2.6+1.16.jar下载0.2.6+1.16#ReleaseThis update fixes an issue which causes crash in development environments. This is also the last update to support Fabric Loader v0.11.x.Full changelog:- Fix crash when loading nested jar mods in a development environment- Properly warn user about Fabric Loader v0.12.x incompatibility- Support will be added in the next update (hopefully v0.3.0)Tested with Minecraft 1.16.5 + Fabric Loader 0.11.7 + ModMenu 1.16.22, should work on slightly older versions.Remember, this mod is a HUGE HACK that can wreak havoc with your modpack; use with care.展开版本: 0.2.6+1.16支持游戏: 1.16.5类型:FabricRelease下载次数: 3,3970.2.6+1.17thatorthis-0.2.6+1.17.jar下载0.2.6+1.17#ReleaseThis update fixes an issue which causes crash in development environments. This is also the last update to support Fabric Loader v0.11.x.Full changelog:- Fix crash when loading nested jar mods in a development environment- Properly warn user about Fabric Loader v0.12.x incompatibility- Support will be added in the next update (hopefully v0.3.0)Tested with Minecraft 1.17.1 + Fabric Loader 0.11.7 + ModMenu 2.0.14, should work on slightly older versions.Remember, this mod is a HUGE HACK that can wreak havoc with your modpack; use with care.展开版本: 0.2.6+1.17支持游戏: 1.17, 1.17.1类型:FabricRelease下载次数: 3110.2.5+1.16thatorthis-0.2.5+1.16.jar下载0.2.5+1.16#ReleaseThis update fixes two bugs about tooltip rendering.Full changelog:- Fix tooltip persisting after sudden focus change (#14)- Fix tooltip showing on buttons covered by the margin of the list- Log additional mods and directories in separate lines like the Fabric LoaderTested with Minecraft 1.16.5 + Fabric Loader 0.11.6 + ModMenu 1.16.10, should work on slightly older versions.Remember, this mod is a HUGE HACK that can wreak havoc with your modpack; use with care.展开版本: 0.2.5+1.16支持游戏: 1.16.5类型:FabricRelease下载次数: 1410.2.5+1.17thatorthis-0.2.5+1.17.jar下载0.2.5+1.17#ReleaseThis update adds support for Minecraft 1.17.1 and fixes two bugs about tooltip rendering.Full changelog:- Minecraft 1.17.1 support- Fix tooltip persisting after sudden focus change (#14)- Fix tooltip showing on buttons covered by the margin of the list- Log additional mods and directories in separate lines like the Fabric LoaderTested with Minecraft 1.17.1 + Fabric Loader 0.11.6 + ModMenu 2.0.3, should work on slightly older versions.Remember, this mod is a HUGE HACK that can wreak havoc with your modpack; use with care.展开版本: 0.2.5+1.17支持游戏: 1.17, 1.17.1类型:FabricRelease下载次数: 3280.2.4+1.16thatorthis-0.2.4+1.16.jar下载0.2.4+1.16#ReleaseThis update adds Russian translation and support for translating mods\' names in `GENERATED` rules.Full changelog:- Added Russian translation for ThatOrThis GUI (thanks to @Felix14-v2)- Added optional `customName` field to `GENERATED` rules for customizing the mapping from mod IDs to names. Refer to [config specs][rules_example_json5] for details.Tested with Minecraft 1.16.5 + Fabric Loader 0.11.3 + ModMenu 1.16.9, should work on slightly older versions.Remember, this mod is a HUGE HACK that can wreak havoc with your modpack; use with care.[rules_example_json5]: https://github.com/EZForever/ThatOrThis/blob/master/rules.example.json5展开版本: 0.2.4+1.16支持游戏: 1.16.5类型:FabricRelease下载次数: 1580.2.4+1.17thatorthis-0.2.4+1.17.jar下载0.2.4+1.17#ReleaseThis update adds Russian translation and support for translating mods\' names in `GENERATED` rules.Full changelog:- Added Russian translation for ThatOrThis GUI (thanks to @Felix14-v2)- Added optional `customName` field to `GENERATED` rules for customizing the mapping from mod IDs to names. Refer to [config specs][rules_example_json5] for details.Tested with Minecraft 1.17 + Fabric Loader 0.11.3 + ModMenu 2.0.2, should work on slightly older versions.Remember, this mod is a HUGE HACK that can wreak havoc with your modpack; use with care.[rules_example_json5]: https://github.com/EZForever/ThatOrThis/blob/master/rules.example.json5展开版本: 0.2.4+1.17支持游戏: 1.17类型:FabricRelease下载次数: 1670.2.3+1.16thatorthis-0.2.3+1.16.jar下载0.2.3+1.16#ReleaseThis update adds initial support for Minecraft 1.17. It is functionally the same as v0.2.2.Tested with Minecraft 1.16.5 + Fabric Loader 0.11.3 + ModMenu 1.16.9, should work on slightly older versions.Remember, this mod is a HUGE HACK that can wreak havoc with your modpack; use with care.展开版本: 0.2.3+1.16支持游戏: 1.16.5类型:FabricRelease下载次数: 1360.2.3+1.17thatorthis-0.2.3+1.17.jar下载0.2.3+1.17#ReleaseThis update adds initial support for Minecraft 1.17. It is functionally the same as v0.2.2.Tested with Minecraft 1.17 + Fabric Loader 0.11.3 + ModMenu 2.0.0-beta.7, should work on slightly older versions.Remember, this mod is a HUGE HACK that can wreak havoc with your modpack; use with care.展开版本: 0.2.3+1.17支持游戏: 1.17类型:FabricRelease下载次数: 1250.2.2thatorthis-0.2.2.jar下载0.2.2#BetaThis update adds several modpack-developer-friendly features, namely the ability to reload config files in case of a failed load, and experimental support for `LanguageAdapter` mods.Full changelog:- Mods skipped by ThatOrThis (via `GENERATED` switches or disabled screens) are logged into `debug.log` for easlier debugging.- ModMenu integration: *right click* on ModMenu\'s button now brings up ThatOrThis\' settings screen.- A tooltip is also added to ModMenu\'s button as a usage hint.- If config files are not correctly loaded when launching the game, this shortcut will force a config reload until valid configs are read. This is useful for designing rules and options.- `LanguageAdapter` mods (programming language support mods, GrossFabricHacks, etc.) can now be loaded via ThatOrThis. ThatOrThis will issue warnings and try to \"fix\" their functionality, but without guarantee.- As a result, the GrossFabricHacks warning has been removed.Tested with Minecraft 1.16.5 + Fabric Loader 0.11.1 + ModMenu 1.16.8, should work on slightly older versions.Remember, this mod is a HUGE HACK that can wreak havoc with your modpack; use with care.展开版本: 0.2.2支持游戏: 1.16.5类型:FabricBeta下载次数: 2050.2.1thatorthis-0.2.1.jar下载0.2.1#BetaThis update adds a \"lock\" button on choice screens. When pressed, all rules (and thus mods) on the same screen are disabled.The \"lock\" button is enabled on `GENERATED` screens (so you can disable all mods at once instead of hitting each mod\'s switch), and can be enabled on `NESTED` screens if `\"canDisable\": true` is set on the rule in the config file.Tested with Minecraft 1.16.5 + Fabric Loader 0.11.1 + ModMenu 1.16.8, should work on slightly older versions.Remember, this mod is a HUGE HACK that can wreak havoc with your modpack; use with care.展开版本: 0.2.1支持游戏: 1.16.5类型:FabricBeta下载次数: 1120.2.0thatorthis-0.2.0.jar下载0.2.0#Beta**NOTE: v0.2.0 introduces breaking changes regarding config file schemas; see [migration guide][migration-guide] for details.**This update adds more types of rules, supporting toggling of individual rules and nested settings screens. Refer to [config specs][rules_example_json5] for details. ThatOrThis is also made usable to ordinary users via a default rule set.Full changelog:- Rules (and choices) now has types:- `DEFINED` is the \"classic\" type, choose between *defined* sets of directories- `GENERATED` *generates* a settings screen for individual mods- `NESTED` allows rules to be placed on a *nested* settings screen- `DISABLED` for showing textual hints- `NULL` as spacers- A default rule set will be used if `rules.json` is not present- This rule set allows toggling mods in `thatorthis` directory, with usage hints on the settings screen- Mod description is now translatedTested with Minecraft 1.16.5 + Fabric Loader 0.11.1 + ModMenu 1.16.8, should work on slightly older versions.Remember, this mod is a HUGE HACK that can wreak havoc with your modpack; use with care.[migration-guide]: https://github.com/EZForever/ThatOrThis/releases/tag/v0.2.0#user-content-v0.2.0-migration-guide[rules_example_json5]: https://github.com/EZForever/ThatOrThis/blob/master/rules.example.json5展开版本: 0.2.0支持游戏: 1.16.5类型:FabricBeta下载次数: 1100.1.1thatorthis-0.1.1.jar下载0.1.1#BetaThis update fixes [#2](https://github.com/EZForever/ThatOrThis/issues/2), a critical bug which crashes servers.Tested with Minecraft 1.16.5 (*Both client-side and server-side*) + Fabric Loader 0.11.1 + ModMenu 1.16.8, should work on slightly older versions.Remember, this mod is a HUGE HACK that can wreak havoc with your modpack; use with care.展开版本: 0.1.1支持游戏: 1.16.5类型:FabricBeta下载次数: 1090.1.0thatorthis-0.1.0.jar下载0.1.0#Beta展开版本: 0.1.0支持游戏: 1.16.5类型:FabricBeta下载次数: 123全部版本
markdown_parsed
文章类型:收录
layui.use([\'form\'], function(){
var form = layui.form;
});
ThatOrThis |
楼主
2025-8-10 19:35:11
回复(0)
收起回复
|