tojiisdumb_

JDK toolchain: 25

Java compiler release: 25

Minecraft: 26.2

Fabric Loom: 1.19.3

Fabric Loader: 0.19.5

Kodari AI
KodariNov 2 at 2:46 pm 2

The project is already configured with those values: Java toolchain and release 25, Minecraft 26.2, Fabric Loom 1.19.3, and Fabric Loader 0.19.5.

tojiisdumb_

will it workon 26.2

Kodari AI
KodariNov 2 at 2:46 pm 1

It’s configured to target Minecraft 26.2 with Java 25. That makes it compatible in principle, but configuration alone doesn’t guarantee it will run—you’ll need to compile it and test it in-game.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
gradle.properties
LICENSE
README.md
settings.gradle
Code
16 886
src/main/java/dev/cybermc/CyberMC.java
package dev.cybermc;

import dev.cybermc.gui.ClickGuiScreen;
import dev.cybermc.module.ModuleManager;
import dev.cybermc.module.Modules;
import dev.cybermc.profile.ProfileManager;
import dev.cybermc.util.ConfigManager;
import net.fabricmc.api.ClientModInitializer;
import net.fabricmc.fabric.api.client.event.lifecycle.v1.ClientTickEvents;
import net.fabricmc.fabric.api.client.keymapping.v1.KeyMappingHelper;
import net.minecraft.client.KeyMapping;
import net.minecraft.resources.Identifier;
import org.lwjgl.glfw.GLFW;

public final class CyberMC implements ClientModInitializer {
    public static final String NAME = "CyberMC";
    public static ModuleManager MODULES;
    public static ProfileManager PROFILES;
    public static ConfigManager CONFIG;
    private static KeyMapping clickGuiKey;

    @Override
    public void onInitializeClient() {
        MODULES = new ModuleManager();
        PROFILES = new ProfileManager();
        CONFIG = new ConfigManager();
        Modules.registerAll(MODULES);
        CONFIG.load();
        clickGuiKey = KeyMappingHelper.registerKeyMapping(new KeyMapping(
                "key.cybermc.clickgui", GLFW.GLFW_KEY_GRAVE_ACCENT, KeyMapping.Category.MISC));
        ClientTickEvents.END_CLIENT_TICK.register(client -> {
            while (clickGuiKey.consumeClick()) {
                if (client.gui.screen() == null) client.gui.setScreen(new ClickGuiScreen());
            }
            MODULES.tick();
        });
    }

    public static Identifier id(String path) {
        return Identifier.fromNamespaceAndPath("cybermc", path);
    }
}