Mods
Resource Packs
Data Packs
Modpacks
Shaders
Plugins
Mods Resource Packs Data Packs Plugins Shaders Modpacks
Get Modrinth App Upgrade to Modrinth+
Sign in
ModsPluginsData PacksShadersResource PacksModpacks
Sign in
Settings
Preloading Tricks

Preloading Tricks

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

2,905
7
Library
AboutChangelogVersions

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:

  • 1.20.1 – Forge & Fabric
  • 1.21.1 – NeoForge & Fabric

You can test on more version since it's depends on the loader version instead of Minecraft version


Features

  • Early loader entrypoints via PreloadingTricksCallback

    • onSetupLanguageAdapter – early setup stage
    • onSetupMods – modify mod list (add/remove via loader API)
  • Instrumentation-powered ClassTransform Can transform already-loaded classes, including Java core and classloader classes.


ClassTransform Configuration

To enable transformations, add the following attribute to your MANIFEST.MF:

ClassTransformConfig: xxxx.classtransform.json

Example config (xxxx.classtransform.json):

{
  "package": "settingdust.preloading_tricks.neoforge.transformer",
  "transformers": [
    "mod_setup_hook.FMLLoaderTransformer"
  ]
}

For developers who need to reach into the earliest moments of Minecraft’s loading process.

90% of ad revenue goes to creators

Support creators and Modrinth ad-free with Modrinth+

Compatibility

Minecraft: Java Edition

1.21.x
1.20.x
1.19.x
1.18.x
1.16.5

Platforms

Fabric
Forge
NeoForge
Quilt

Supported environments

Client-side
Server-side
Client and server (optional)

Links

Report issues View source Join Discord server
Donate on Patreon

Creators

settingdust
settingdust Owner

Details

Licensed MIT
Published 2 years ago
Updated 10 hours ago

Modrinth is open source.

main@a0bd011

© Rinth, Inc.

Company

TermsPrivacyRulesCareers

Resources

SupportBlogDocsStatus

Interact

Discord X (Twitter) Mastodon Crowdin
Get Modrinth App Settings
NOT AN OFFICIAL MINECRAFT SERVICE. NOT APPROVED BY OR ASSOCIATED WITH MOJANG OR MICROSOFT.