CurseForge · Minecraft mod
MCFA
A simple library mod that allows other mods to easily do low level bytecode modifications.
Quick answer
Which MCFA release matches 1.21.2?
MCFA gud_mcfa-1.0.0.jar targets 1.21.2-Snapshot, 1.21, 1.21.5 with Fabric. The project page does not say whether this file belongs on the client, dedicated server, or both. No extra mods listed for this file.
Where it goes
Is MCFA required on the client, server, or both?
The project page does not say whether this file belongs on the client, dedicated server, or both.
The source does not explicitly classify this release as client-only or server-only.
What else does MCFA gud_mcfa-1.0.0.jar need?
gud_mcfa-1.0.0.jar on 1.21.2. Every mod below is checked against that same setup.
This file does not list any required mods. Do not add a library just because a different file uses it.
This file does not list any required or optional mods.
Before you install it
Add MCFA without breaking your instance.
Built for MCFA gud_mcfa-1.0.0.jar on 1.21.2. Pick another file and the loader, install side or required mods may change.
- 01
Stick to this file
Use gud_mcfa-1.0.0.jar. It targets 1.21.2-Snapshot, 1.21, 1.21.5 with Fabric; another release may have different loader, side or dependency requirements.
- 02
Bring the mods it needs
This file does not list any required mods. Do not add a library just because a different file uses it.
- 03
Put it on the correct side
The project page does not say whether this file belongs on the client, dedicated server, or both.
- 04
Pick the file you checked
Use the “Get this file” button beside gud_mcfa-1.0.0.jar. It opens that exact file at the source.
About this project
What does MCFA add?
A small library mod that allows other mods to use the Java 24 ClassFile API to directly edit the code of classes as they are loaded.
A simple example implementation could be:
public class Example implements McfaInitializer { @Override public void initializeTransformers(@NotNull Mcfa registry) { registry.registerTransformer( "net.minecraft.class_310", ClassTransform.transformingMethods( MethodTransform.transformingCode( (builder, element) -> { var result = switch(element) { case ConstantInstruction instruction -> switch(instruction.typeKind()) { case REFERENCE -> { var value = instruction.constantValue(); if(value.equals("Setting user: {}")) { builder.ldc("This got changed via the ClassFile API :-) {}"); yield true; } yield false; } default -> false; }; default -> false; }; if(result) { return; } builder.with(element); } ) ) ); }}
Project description from CurseForge.
Pick your setup
MCFA by Minecraft version and loader
Choose the version and loader you play, then open the matching release.
1.21.5
1 loader build1.21.4-Snapshot
1 loader build1.21.4
1 loader build1.21.3
1 loader build1.21.2-Snapshot
1 loader build1.21.2
1 loader build1.21.1-Snapshot
1 loader build1.21.1
1 loader build1.21-Snapshot
1 loader build1.21
1 loader buildCheck the dependencies, then try the file in a copied instance before changing a world you care about.
Recent files
MCFA versions and loaders
gud_mcfa-1.0.0.jar
30 Mar 2025
Looking for an older file? The official CurseForge project page is in Resources.