Phantom Loader
Modby HexagonNico
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.
Type
Mod
CurseForge Downloads
297,978
CurseForge ID
958545
Modrinth Downloads
1,179,730
Modrinth ID
mWdDy9A0
Last Updated
Jul 27, 2026
Description

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](https://github.com/PhantomLoader/PhantomLoader/wiki).
An example mod using **Phantom Loader** can be found [here](https://github.com/PhantomLoader/ExampleMod).
# Credits
Author: [HexagonNico](https://modrinth.com/user/HexagonNico)
Compatibility
Mod Loaders
Fabric
Forge
Game Versions
1.19.4
1.20.1
1.20.2
1.20.3
1.20.4
Similar Mods
No Farmland Trample
Disables farmland trampling
Mod
14,771,147
Temporal API
Temporal API is the library for Team Temporal mods, other projects may use it as well.
Mod
14,756,481
Paginated Advancements & Custom Frames
Better advancements screen
Mod
14,752,407
Windchimes
Gentle chimes that sway in the wind.
Mod
14,730,692
KubeJS Blood Magic
KubeJS Blood Magic integration
Mod
14,718,635
Thaumcraft NEI Plugin
NEI Integration for Thaumcraft 4
Mod
14,718,108