CurseForge · Minecraft mod
Preloading Tricks
A developer tool for early loader access, class transformation, and preloading hacks.
Quick answer
Which Preloading Tricks release matches 1.19?
Preloading Tricks 1.0.6 targets 1.18, 1.18.1, 1.18.2 with Fabric, Forge, Quilt. Installation on the client is optional. Installation on the dedicated server is optional. No extra mods listed for this file.
Where it goes
Is Preloading Tricks required on the client, server, or both?
Installation on the client is optional. Installation on the dedicated server is optional.
The source marks this as usable on both the client and server.
What else does Preloading Tricks 1.0.6 need?
1.0.6 on 1.19. Every mod below is checked against that same setup.
This file does not list any required mods. Do not add a library just because a different file uses it.
This file does not list any required or optional mods.
Before you install it
Add Preloading Tricks without breaking your instance.
Built for Preloading Tricks 1.0.6 on 1.19. Pick another file and the loader, install side or required mods may change.
- 01
Stick to this file
Use 1.0.6. It targets 1.18, 1.18.1, 1.18.2 with Fabric, Forge, Quilt; another release may have different loader, side or dependency requirements.
- 02
Bring the mods it needs
This file does not list any required mods. Do not add a library just because a different file uses it.
- 03
Put it on the correct side
Installation on the client is optional. Installation on the dedicated server is optional.
- 04
Pick the file you checked
Use the “Get this file” button beside 1.0.6. It opens that exact file at the source.
About this project
What does Preloading Tricks add?
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
PreloadingTricksCallbacksevents:SETUP_LANGUAGE_ADAPTER– early language adapter setup stageCOLLECT_MOD_CANDIDATES– dynamically add mod candidate paths before discoverySETUP_MODS– modify mod list (add/remove/query viaModManagerAPI)
- Register callbacks using
Instrumentation-powered
ClassTransformCan transform already-loaded classes, including Java core and classloader classes. Configure viaMANIFEST.MFon all platforms (see below).Forge variant detection (Forge-like only)
- Access
ForgeVariantsto detect specific Forge/NeoForge versions at runtime
- Access
Usage (Gradle)
Add the Maven repository and dependency to your build:
Kotlin DSL:
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 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):
{
"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.
Project description from CurseForge.
Pick your setup
Preloading Tricks by Minecraft version and loader
Choose the version and loader you play, then open the matching release.
26.1.1
3 loader builds26.1
3 loader builds1.21.11
3 loader builds1.21.10
3 loader builds1.21.9
3 loader builds1.21.8
3 loader builds1.21.7
3 loader builds1.21.6
3 loader builds1.21.5
3 loader builds1.21.4
3 loader builds1.21.3
3 loader buildsShowing the newest 12 of 31 game versions. Older files are in the list below.
Check the dependencies, then try the file in a copied instance before changing a world you care about.
Recent files
Preloading Tricks versions and loaders
1.0.6
preloading-tricks-1.0.6.jar
12 Nov 2023
1.0.5
preloading-tricks-1.0.5.jar
10 Nov 2023
1.0.4
preloading-tricks-1.0.4.jar
22 Oct 2023
1.0.3
preloading-tricks-1.0.3.jar
22 Oct 2023
1.0.2
preloading-tricks-1.0.2.jar
22 Oct 2023
1.0.1
preloading-tricks-1.0.1.jar
22 Oct 2023
1.0.0
preloading-tricks-1.0.0.jar
22 Oct 2023
0.0.14
preloading-tricks-0.0.14.jar
8 Aug 2023
0.0.13
preloading-tricks-0.0.13.jar
7 Aug 2023
0.0.12
preloading-tricks-0.0.12.jar
7 Aug 2023
0.0.11
preloading-tricks-0.0.11.jar
6 Aug 2023
0.0.10
preloading-tricks-0.0.10.jar
6 Aug 2023
Looking for an older file? The official CurseForge project page is in Resources.