Preloading Tricks
🟡 Updated this year⚠️ Install Order · 2 steps
Install in this order, then this mod last — most mods fail to load without their framework and dependencies in place.
Preview

🔍 Analysis
- 👍 0.0% endorsement rate
- 🏆 #49 of 1032 fabric mods in this game by downloads
📋 About This Mod
### Overview **Preloading Tricks** is a developer-only mod that enables advanced operations during the very early stage of the mod loader. It provides early hooks, Java Instrumentation-based class transformation, and SPI-driven callbacks for loader extension. Supported environments: * **Fabric** – 1.20.1, 1.21+ * **Forge (LexForge)** – 1.20.1 * **NeoForge** – 1.20.6, 1.21+ You can test on more versions since it depends on the loader version instead of the Minecraft version. --- ### Features * **Early loader entrypoint** via `PreloadingEntrypoint` (SPI-based) * Register callbacks using `PreloadingTricksCallbacks` events: * `SETUP_LANGUAGE_ADAPTER` – early language adapter setup stage * `COLLECT_MOD_CANDIDATES` – dynamically add mod candidate paths before discovery * `SETUP_MODS` – modify mod list (add/remove/query via `ModManager` API) * **Instrumentation-powered `ClassTransform`** Can transform already-loaded classes, including Java core and classloader classes. Configure via `MANIFEST.MF` on all platforms (see below). * **Forge variant detection** (Forge-like only) * Access `ForgeVariants` to detect specific Forge/NeoForge versions at runtime --- ### Usage (Gradle) Add the Maven repository and dependency to your build: **Kotlin DSL:** ```kotlin repositories { maven("https://raw.githubusercontent.com/settingdust/maven/main/repository/") } dependencies { // Recommended: use the base artifact (no classifier). // Gradle variant matching / cloche will resolve the correct platform artifact automatically. implementation("settingdust.preloading_tricks:PreloadingTricks:VERSION") // Optional: pin to a specific classifier when you want to avoid accidentally using APIs // from other platforms. // implementation("settingdust.preloading_tricks:PreloadingTricks:VERSION:fabric") // implementation("settingdust.preloading_tricks:PreloadingTricks:VERSION:forge-service") // implementation("settingdust.preloading_tricks:PreloadingTricks:VERSION:neoforge-modlauncher") // implementation("settingdust.preloading_tricks:PreloadingTricks:VERSION:neoforge-fancy-mod-loader") } ``` Replace `VERSION` with the latest release (e.g. `3.5.9`). If you are using (https://github.com/terrarium-earth/cloche), the corresponding variant is selected automatically based on loader/minecraft attributes. --- ### ClassTransform Configuration For all platforms, add the following attribute to your `MANIFEST.MF`: ``` ClassTransformConfig: xxxx.classtransform.json ``` Multiple configs can be specified as comma-separated values: ``` ClassTransformConfig: first.classtransform.json,second.classtransform.json ``` Example config (`xxxx.classtransform.json`): ```json { "package": "settingdust.preloading_tricks.neoforge.transformer", "transformers": } ``` --- ### Forge Variant Detection (Forge-like only) Allows a mod to load only on a specific Forge-like loader variant. This enables bundling both LexForge and NeoForge JARs together via jar-in-jar in a single mod file. **Configuration:** Specify your mod's target variant in `MANIFEST.MF`: ``` ForgeVariant: LexForge ``` or ``` ForgeVariant: NeoForge ``` Mods with a `ForgeVariant` specified will only load when running on the matching loader variant, allowing safe coexistence of variant-specific implementations. --- **For developers who need to reach into the earliest moments of Minecraft’s loading process.**
### Overview
Preloading Tricks is a developer-only mod that enables advanced operations during the very early stage of the mod loader. It provides early hooks, Java Instrumentation-based class transformation, and SPI-driven callbacks for loader extension.
Supported environments:
Fabric – 1. 20. 1, 1. 21+ Forge (LexForge) – 1. 20. 1 NeoForge – 1. 20. 6, 1. 21+
You can test on more versions since it depends on the loader version instead of the Minecraft version.
### Features
Early loader entrypoint via `PreloadingEntrypoint` (SPI-based)
Register callbacks using `PreloadingTricksCallbacks` events: `SETUP_LANGUAGE_ADAPTER` – early language adapter setup stage `COLLECT_MOD_CANDIDATES` – dynamically add mod candidate paths before discovery `SETUP_MODS` – modify mod list (add/remove/query via `ModManager` API) Instrumentation-powered `ClassTransform` Can transform already-loaded classes, including Java core and classloader classes. Configure via `MANIFEST. MF` on all platforms (see below).
Forge variant detection (Forge-like only) * Access `ForgeVariants` to detect specific Forge/NeoForge versions at runtime
### Usage (Gradle)
Add the Maven repository and dependency to your build:
Kotlin DSL:
```kotlin repositories { maven("https://raw.githubusercontent.com/settingdust/maven/main/repository/") }
dependencies { // Recommended: use the base artifact (no classifier). // Gradle variant matching / cloche will resolve the correct platform artifact automatically. implementation("settingdust.preloading_tricks:PreloadingTricks:VERSION")
// Optional: pin to a specific classifier when you want to avoid accidentally using APIs // from other platforms. // implementation("settingdust.preloading_tricks:PreloadingTricks:VERSION:fabric") // implementation("settingdust.preloading_tricks:PreloadingTricks:VERSION:forge-service") // implementation("settingdust.preloading_tricks:PreloadingTricks:VERSION:neoforge-modlauncher") // implementation("settingdust.preloading_tricks:PreloadingTricks:VERSION:neoforge-fancy-mod-loader") } ```
Replace `VERSION` with the latest release (e.g. `3. 5. 9`).
If you are using (https://github.com/terrarium-earth/cloche), the corresponding variant is selected automatically based on loader/minecraft attributes.
### ClassTransform Configuration
For all platforms, add the following attribute to your `MANIFEST. MF`:
``` ClassTransformConfig: xxxx.classtransform.json ```
Multiple configs can be specified as comma-separated values:
``` ClassTransformConfig: first.classtransform.json,second.classtransform.json ```
Example config (`xxxx.classtransform.json`):
```json { "package": "settingdust.preloading_tricks.neoforge.transformer", "transformers": [ "mod_setup_hook. FMLLoaderTransformer" ] } ```
### Forge Variant Detection (Forge-like only)
Allows a mod to load only on a specific Forge-like loader variant. This enables bundling both LexForge and NeoForge JARs together via jar-in-jar in a single mod file.
Configuration:
Specify your mod's target variant in `MANIFEST. MF`: ``` ForgeVariant: LexForge ``` or ``` ForgeVariant: NeoForge ```
Mods with a `ForgeVariant` specified will only load when running on the matching loader variant, allowing safe coexistence of variant-specific implementations.
For developers who need to reach into the earliest moments of Minecraft’s loading process.
📊 Mod Details
- Game
- Minecraft Mods
- Author
- settingdust
- Version
- 3.7.3
- Downloads
- 366,091
- Endorsements
- 21
- Category
- fabric
- Created
- 8/7/2023
- Updated
- 6/29/2026
- Game Versions
- 1.20.1, 1.21.1, 1.21.2, 1.21.3, 1.21.4
- Tags
- library
🔧 How to Install Minecraft Mods Mods
Download from Modrinth. Use Prism Launcher or drop into your mods folder.
📖 Full step-by-step install guide for Minecraft Mods →
Visit the official mod page for specific installation instructions for this mod.
🎮 Need cheat codes or console commands? Check ur gaming wiki for Minecraft Mods commands, item IDs, and more.
❓ Frequently Asked Questions
Which Minecraft Mods versions does Preloading Tricks support?
The author lists 1.20.1, 1.21.1, 1.21.2, 1.21.3, 1.21.4, 1.21.5. Other versions may work but are untested by the author.
What is the latest version of Preloading Tricks?
Version 3.7.3, published 2026-06-29 with 366,091 downloads recorded at the source.
Keep browsing — more Minecraft Mods mods await