HomeJavaModsPhantom Loader
Phantom Loader
ModsJava

Phantom Loader

by HexagonNico · on Modrinth

Which build do you need?

This mod ships a separate file for every mod loader and every version of the game. Pick both, then download — the wrong build installs fine and then does nothing in the game.

Mod loader

Minecraft version

⬇ Download for 1.20.3–1.20.4 · Fabric⬇ Download for 1.20.1–1.20.2 · Fabric⬇ Download for 1.19.4 · Fabric⬇ Download for 1.20.3–1.20.4 · Forge⬇ Download for 1.20.1–1.20.2 · Forge⬇ Download for 1.19.4 · Forge
I don't know my version or loader
Open the Minecraft launcher and look at the profile you play on — it names both, like fabric-loader-1.21.4. The version also shows in the bottom-right corner of the game's main menu.
No loader in the profile name? Then it's plain Minecraft, and these mods won't run — you need Fabric or NeoForge installed first.

Phantom Loader

Phantom Loader is a library that automates part of the process of creating Minecraft mods for multiple mod loaders by generating loader-specific code at build time.

About

Normally, when creating a mod for both Fabric and Forge, mod developers have to create separate modules for both mod loaders and add loader-specific code that has mostly the same function. Phantom Loader allows you to automatically generate Forge and Fabric initializer classes on build time by keeping all code, or most of the code, in the common module.

The Phantom Library also takes care of abstracting each mod loader's basic functionalities to allow the developer to only depend on the abstraction from the common module.

For developers

Documentation for setting up and using Phantom Loader can be found on the Wiki.

An example mod using Phantom Loader can be found here.

Credits

Author: HexagonNico

Verified by MCModsHub

These come from our own check of the pack file, not from the source page.

Explore more