Get the files on 9Minecraft
Guides
Step-by-step, in-game.
Intervene in Mod Loader Setup Before InitializationUnderstand the Preloading Phase Preloading Tricks lets you hook into the mod loader's setup process before it…Modify Another Mod's Classes at Load TimeIdentify the Target Class Determine which class from another mod you need to transform. You'll need its fully…Set Up Class Transformers for Your ModCreate the Transformer Configuration File Class transformers allow you to modify bytecode of classes before they load…Use Early Loader Hooks in Your Mod CodeUnderstand Available Hooks Preloading Tricks provides early callbacks that execute before mod initialization…
Frequently asked questions
What is this mod actually for?
Preloading Tricks Mod is designed for mod developers, not regular players. It lets you hook into the mod loader before mods officially initialize and transform Java classes at the bytecode level—much earlier than mixins can reach. If you're not writing a mod that needs to modify loader behavior or another mod's classes during startup, you don't need this mod.
How do I set up class transformers for my mod?
Add a `ClassTransformConfig` attribute to your mod's manifest pointing to a JSON file (e.g., `classtransform.json`). In that JSON, specify the package and list the transformer classes you want to register. See the guide 'Set Up Class Transformers for Your Mod' for the exact format and working examples.
What early hooks are available?
The mod provides hooks like `onSetupLanguageAdapter` and `onSetupMods` that fire before the mod loader officially initializes. These let you intercept and modify how adapters are set up or how the mod list is processed. Check 'Use Early Loader Hooks in Your Mod Code' for the full list and how to register them.
Can I modify another mod's classes with this?
Yes—that's one of the main uses. By registering class transformers, you can edit the bytecode of any class (including from other mods) as soon as it loads into the JVM. See 'Modify Another Mod's Classes at Load Time' for setup instructions and examples.
See all 10 Preloading Tricks questions ›
Gallery
8 images from the Preloading Tricks Mod page.
You May Also Like
Wikis that share the most with this one
Wikis on the same theme: world
More mod wikis on the site
The most downloaded mods that have a wiki here
A few wikis from each of the other kinds







