Preloading Tricks

Mod

Add hook before setup mod for Quilt, Forge, Fabric

Client or server Library

1,307 downloads
4 followers
Follow Save
Host your Minecraft server on BisectHosting - get 25% off your first month with code MODRINTH.

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.14
  • 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.


Project members

settingdust

Owner

Details

Licensed MIT
Published a year ago
Updated 17 days ago