Screenshot 1 of 1. MinecraftHub-generated cover art for MaFgLib: a floating snowy block island with a workshop of crafting tables and furnaces, under a sunset sky
What MaFgLib works with.
| Platform | Java Edition |
|---|---|
| Loaders | NeoForge |
| Minecraft versions | 1.20, 1.20.6, 1.21.11, 26.1.2, 26.2, 26.3 |
| Environment | Client |
MaFgLib is the unofficial (Neo)Forge port of Masa's mod code base, the library behind Masa's mods on those loaders. It is a library, so it adds nothing to gameplay on its own. It loads on the player's side only, and it exists so other mods can rely on it.
Loaders and versions
- NeoForge: Minecraft 1.20 to 26.3. The newest build requires FoxifiedClassTweaker; some builds for 1.20 to 1.21.11 need no dependencies; some builds for 1.20.3 to 1.21.4 require bad packets.
- Forge: Minecraft 1.16.4 to 1.20.1, builds stopped after July 2025. The newest build needs no dependencies.
What MaFgLib provides
The name follows the original MaLiLib, short for Masa's Litemods Library. MaFgLib reads as Masa's mod Forge port Library. It carries the code that Masa's mods used to duplicate between them.
- Configurable options shared across mods.
- A key binding system with multi-key keybinds.
- Support code for most GUI work.
- A ModConfigScreenRegister, added in this port, for registering configuration screens.
Installation
Put the MaFgLib file in the mods folder next to the mod that asks for it, using the NeoForge or Forge profile that matches your Minecraft release. Then read the dependency line on the file you pick. Some files need Bad Packets, and the newest NeoForge file needs FoxifiedClassTweaker.
Forge status and source
Forge files stopped in July 2025, so new work happens on NeoForge only. Source for 0.4.0 and above lives in the CagayakeGirls/malilib-neoforge repository, while the older ThinkingStudios/MaLiLib-Forge repository holds earlier code. Credits go to maruohon's malilib and sakura-ryoko's malilib.
Questions about MaFgLib.
4 questions
What is MaFgLib?
MaFgLib is a library mod, a NeoForge and Forge port of Masa's mod code base. It supplies configuration options, keybinds and GUI code that Masa's mods on those loaders depend on. You install it because another mod asks for it, not for any effect of its own.
Does MaFgLib work on a multiplayer server?
No. It is required on the client and unsupported on dedicated servers, so leave it out of a server's mods folder. You still install it on your own client when a mod you use depends on it.
Does MaFgLib still support Forge?
Forge files stopped in July 2025, and the last one targets Minecraft 1.20.1. NeoForge is where new files appear, so choose NeoForge for anything newer than that.
Does MaFgLib need other mods?
It depends on the file. Some NeoForge files need nothing, some need Bad Packets, and the newest one needs FoxifiedClassTweaker. Check the dependency line on the exact file you choose before launching.








