Skip to content

SettingDust/preloading-tricks

Repository files navigation

Preloading Tricks

A mod that adds a hook before setting up the main mod. Mainly used for ModSets and AutoModpack.
It only depends on the loader version. It may work on lower versions than these, but that needs testing and feedback.

  • >= Fabric 0.16.2
  • Quilt 0.20
  • Forge 40

Callbacks

Setup Mod

The callback is using Java's ServiceLoader feature.
It will be invoked just before setting up the mods.

Using SetupModService implementations for platforms to control the mod loading.

With the callback, you can control the mod loading.
Notice: It's not recommended to add mods since it can't load mods from a file or classpath. Using IModLocator is officially supported by Forge.

Language Provider

The callback is using Java's ServiceLoader.
It's invoked much earlier than setting up the main mod.

About

Add hook before setup mod for Quilt, Forge, Fabric

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •  

Languages