Back to mods
MCFA project artwork

CurseForge · Minecraft mod

MCFA

A simple library mod that allows other mods to easily do low level bytecode modifications.

Choose a version Pick your version below, then grab the matching file.

Quick answer

Which MCFA release should I use?

Updated 1 year ago
Latest stable file gud_mcfa-1.0.0.jar
Game version 1.21.2-Snapshot, 1.21, 1.21.5
Loader Fabric

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.

Client Source doesn’t say
Dedicated server Source doesn’t say
Loader for this release Fabric
Required install it here Optional supported, not mandatory Not supported do not install here Source doesn’t say do not assume

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. Change the file and its required mods may change too.

No extra mods listed for this file

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. Pick another file and the loader, install side or required mods may change.

  1. 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.

  2. 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.

  3. 03

    Put it on the correct side

    The project page does not say whether this file belongs on the client, dedicated server, or both.

  4. 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.

11 available setups

Check the dependencies, then try the file in a copied instance before changing a world you care about.

Recent files

MCFA versions and loaders

1 of 1 releases match

Looking for an older file? The official CurseForge project page is in Resources.