Перейти к содержимому
Mineforgian

ThatOrThis

A Fabric mod for choosing between sets of Fabric mods.

Загрузки
6K
Подписчики
63
Обновлён
20 октября 2021 г.
Лицензия
MIT

Опубликован 22 февраля 2021 г.

ThatOrThis

A Fabric mod for choosing between sets of Fabric mods.

What is this

ThatOrThis is designed mainly for modpack developers. It hacks into Fabric Loader to allow loading mods from additional user-selectable directories. This allows the end user to choose which mod(s) to load into their modpack, or workaround incompatible mod sets.

Technically speaking, ThatOrThis take its inspiration from Modsmod and GrossFabricHacks, which abuses the LanguageAdapter feature of the Fabric Loader. This allows part of this mod's code to run even before Fabric Loader starts to initialize most other mods. It then read configs, resolve for additional mods to load, and inject them into the loader via Java reflection wizardry.

Features

  • Load mods from directories other than the default .minecraft/mods
  • Let the end user to choose which feature(s) they want (e.g. OptiFabric for shaders or Sodium for optimization)
  • Runtime check for dependencies and conflicts of additional mods
  • Configurable settings screen accessible via ModMenu integration
  • Option names and tooltips support formatting codes and translation keys

Usage

For ordinary users (who installed this mod manually)

Install this mod into your mods folder, along with ModMenu and Fabric API.

Launch Minecraft and open the settings screen via ModMenu. Follow the instructions.

ThatOrThis will be running under the default (limited) rule set if configured this way. If you need features more than toggling individual mods, please refer to the "modpack developers" section.

For modpack users (who downloaded a modpack containing this mod)

Open the settings screen via ModMenu. Change the settings as you desire. Done.

Note that the new settings won't come into effect until you re-launch the game.

For modpack developers (who wish to integrate this mod into a modpack)

Install this mod into your mods folder, along with ModMenu and Fabric API.

Then, create thatorthis folder in your config folder, and file rules.json in that. If done correctly, the path for it should be .minecraft/config/thatorthis/rules.json.

rules.json defines all the available settings and their options. Specs for it can be found here.

Finally, put the mods into subdirectories of the mods folder, as defined in the rule file.

This mod is open-sourced and MIT licensed, meaning that you can include it into your modpack and redistribute it without asking for permission, as long as you credit me (and of course the authors of all other mods) in your modpack.

Compatibility

  • ThatOrThis requires a recent version of Minecraft and Fabric Loader to work.
    • Forge support is never planned; use ModDirector instead.
    • Currently only Fabric Loader v0.11.x is supported. Support for v0.12.x will come with ThatOrThis v0.3.0.
  • ModMenu and Fabric API are optional, meaning that ThatOrThis will work correctly without them given valid rules.json and choices.json.
    • However they are required for the in-game settings screen. You can load them via ThatOrThis, but it is not recommended.
  • Loading programming language support mods (e.g. for Kotlin, Scala and Grovvy) via ThatOrThis is not recommended.
    • They might work, but this feature has not been tested; place them right into the mods directory whenever possible.
  • Modsmod does the exact same thing as ThatOrThis to the Fabric Loader, thus incompatible with each other.

NOTE: ThatOrThis is only intended for small, client-side mods. It may cause crashes and/or server/world incompatibilities if rules and options are not designed carefully. Test your modpack throughly before and after installing this mod.

Ченджлог

0.2.6+1.16Релиз1.16.5 · 20 октября 2021 г.

This 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.17Релиз1.17, 1.17.1 · 20 октября 2021 г.

This 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.5+1.16Релиз1.16.5 · 2 августа 2021 г.

This 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 Loader

Tested 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.17Релиз1.17, 1.17.1 · 2 августа 2021 г.

This 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 Loader

Tested 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.4+1.16Релиз1.16.5 · 24 июня 2021 г.

This 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 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.

0.2.4+1.17Релиз1.17 · 24 июня 2021 г.

This 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 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.

0.2.3+1.16Релиз1.16.5 · 9 июня 2021 г.

This 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.17Релиз1.17 · 9 июня 2021 г.

This 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.

Комментарии

Загружаем…