Source-checkedWeapons, items & crafting

Preloading Tricks

by settingdust · for Minecraft

A developer tool for early loader access, class transformation, and preloading hacks.

389KDownloads
4 mo agoLast updated
Apache-2.0License
Fabric · Forge +2Loaders

About Preloading Tricks

From Modrinth

A developer tool for early loader access, class transformation, and preloading hacks.

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:

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.

Highlights

From source data

Game versions

Supports 31 Minecraft versions, the newest being 26.1.2.

Loaders

Runs on Fabric, Forge, NeoForge and Quilt.

Footprint

Rated a light load on a server.

Preloading Tricks on Nxeon

From our catalogue
One-click install
Supported on Nxeon Minecraft servers. We download it from Modrinth, place it, and restart the server.
Server side
Optional on the server
Server type needed
Fabric, Forge, NeoForge, Quilt
Server load
light
Smallest plan we suggest
Minecraft — 2 GB (2 GB RAM). This follows our own load rating above, not a benchmark.
Latest build
3.7.3, released 2026-06-29

Game versions by loader

LoaderGame versionsNewest
Fabric1.20.1 to 26.1.2 (15 versions)26.1.2
Forge1.20.1 to 26.1.2 (15 versions)26.1.2
NeoForge1.20.1 to 26.1.2 (15 versions)26.1.2

From 5 recorded builds of Preloading Tricks.

Recent builds

BuildReleasedGame versionsLoaders
3.7.32026-06-291.20.1 to 26.1.2 (15 versions)Fabric, Forge, NeoForge
3.7.22026-05-261.20.1 to 26.1.2 (15 versions)Fabric, Forge, NeoForge
3.7.12026-05-261.20.1 to 26.1.2 (15 versions)Fabric, Forge, NeoForge
3.7.02026-05-241.20.1 to 26.1.2 (15 versions)Fabric, Forge, NeoForge
3.6.32026-05-211.20.1 to 26.1.2 (15 versions)Fabric, Forge, NeoForge

Run Preloading Tricks on a Minecraft server

Pick a server or deploy a new one above; it is installed in one click.

What kind of mod it is

From the catalog
Listed on Modrinth as “Mods”

Weapons, items & crafting

New weapons, gear, items and the recipes to make them.

Works on a server

From source side support

Modrinth lists server-side support for Preloading Tricks as optional: it can run on a server, but isn’t required there.

Compatibility

Game
Minecraft
Loaders
FabricForgeNeoForgeQuilt
Runs on
Serveroptional on the server
Game versions
26.1.2 and 30 earlier

Verified at the source

  • ✓ModrinthOfficial listing, checked 2026-10-01Open ↗
  • ✓Authorsettingdust, as published on Modrinth
  • ✓LicenseApache-2.0Free

Preloading Tricks, answered

Generated from the mod’s own source data.

Do my players need to install Preloading Tricks?

Modrinth lists server-side support for Preloading Tricks as optional: it can run on a server, but isn’t required there.

Which loaders does it support?

Fabric, Forge, NeoForge and Quilt.

Is it free?

Yes. Preloading Tricks is free to download from Modrinth. Its license is Apache-2.0.

How do I add it to my Nxeon server?

Use “Add to a server” on this page, or open NxLabs from your dashboard. We install it, restart your server and switch it on.

NxLabs

Run Preloading Tricks on a Minecraft server.

Deploy in about a minute from $4.99 a month, then add Preloading Tricks in one click.