Download Preloading Tricks — Minecraft Mods — MetaMods

Preloading Tricks

Active

Downloads

0

Last update

1 year ago

Versions

1.16.5 — 1.21
Client
Fabric
Forge
Neoforge
Quilt
Libraries

Preloading Tricks

This mod provides the ability to execute code before the main mod loading begins. The main area of application is integration with projects such as ModSets and AutoModpack.

The mod is compatible with various Minecraft loaders. Testing was conducted with the following versions, but operation on older builds is also possible:

  • Fabric 0.14 and above
  • Quilt 0.20 and above
  • Forge 40 and above

Available Features

Mod Setup

This mechanism uses the standard Java ServiceLoader function. The call occurs immediately before the main mod initialization begins.

To manage the loading process, SetupModService implementations adapted for each platform are used:

  • Forge: implementation for Forge
  • Fabric: implementation for Fabric
  • Quilt: implementation for Quilt

Using this callback, you can control the mod loading process. It's important to note that adding new mods is not recommended, as the system cannot load them from files or classpath. For these purposes, Forge officially supports the use of IModLocator.

Language Provider

This callback also uses Java ServiceLoader but executes much earlier — before the main mod setup begins.

Project members
settingdust

settingdust

Developer

Created: 7 Aug 2023

ID: 1986