Discord

make me a .jar i can put in my minecraft mod folder and create this mod :

📎 1 file 17,068 chars
📄
pasted-code-1788288443970.txt
txt 436 lines
▶
// ============================================================
// FILE: SkylebClientMod.java
// ============================================================
package net.skyleb.client;

import net.fabricmc.api.ClientModInitializer;
import net.fabricmc.fabric.api.client.event.lifecycle.v1.ClientTickEvents;
import net.fabricmc.fabric.api.client.keybinding.v1.KeyBindingHelper;
import net.minecraft.client.option.KeyBinding;
import net.minecraft.client.util.InputUtil;
import org.lwjgl.glfw.GLFW;

public class SkylebClientMod implements ClientModInitializer {
    private static HackGUI gui;
    private static KeyBinding toggleKey;

    @Override
    public void onInitializeClient() {
        toggleKey = KeyBindingHelper.registerKeyBinding(new KeyBinding(
            "key.skyleb.toggle",
            InputUtil.Type.KEYSYM,
            GLFW.GLFW_KEY_K,
            "category.skyleb"
        ));

        ClientTickEvents.END_CLIENT_TICK.register(client -> {
            if (toggleKey.wasPressed()) {
                if (gui == null) gui = new HackGUI();
                gui.toggleOpen();
            }
        });
    }
}

// ============================================================
// FILE: HackGUI.java
// ============================================================
package net.skyleb.client;

import net.minecraft.client.MinecraftClient;
import net.minecraft.client.gui.DrawContext;
import net.minecraft.client.gui.screen.Screen;
import net.minecraft.text.Text;
import net.minecraft.util.Identifier;
import org.lwjgl.glfw.GLFW;
import java.awt.Color;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.atomic.AtomicBoolean;

public class HackGUI extends Screen {
    private static final int PANEL_WIDTH = 400;
    private static final int PANEL_HEIGHT = 450;
    private static final int MODULE_HEIGHT = 20;
    private static final int VISIBLE_MODULES = 14;
    private final ConcurrentHashMap modules = new ConcurrentHashMap<>();
    private int scrollOffset = 0;
    private final AtomicBoolean isOpen = new AtomicBoolean(false);
    private long lastRenderTime = 0;
    private static final int FRAME_CAP = 60;

    public HackGUI() {
        super(Text.literal("Skyleb Client"));
        initializeModules();
    }

    private void initializeModules() {
        // Combat
        modules.put("AutoTotem", new AtomicBoolean(false));
        modules.put("AutoCrystal", new AtomicBoolean(false));
        modules.put("AnchorNarco", new AtomicBoolean(false));
        modules.put("DoubleAnchor", new AtomicBoolean(false));
        modules.put("AutoTpa", new AtomicBoolean(false));
        modules.put("AutoClicker", new AtomicBoolean(false));
        modules.put("FastUse", new AtomicBoolean(false));
        modules.put("HitBox", new AtomicBoolean(false));
        // Misc
        modules.put("FullBright", new AtomicBoolean(false));
        modules.put("AmAssist", new AtomicBoolean(false));
        modules.put("MiceSwap", new AtomicBoolean(false));
        modules.put("NameYS", new AtomicBoolean(false));
        modules.put("FikerPay", new AtomicBoolean(false));
        modules.put("ElytraSwap", new AtomicBoolean(false));
        modules.put("SuspiciousStewEater", new AtomicBoolean(false));
        modules.put("HoldTotem", new AtomicBoolean(false));
        // Render
        modules.put("BlockESP", new AtomicBoolean(false));
        modules.put("StorageESP", new AtomicBoolean(false));
        modules.put("BlockEntityESP", new AtomicBoolean(false));
        modules.put("PlayerESP", new AtomicBoolean(false));
        modules.put("MobESP", new AtomicBoolean(false));
        modules.put("SpawnerManeTas", new AtomicBoolean(false));
        modules.put("ChunkFinder", new AtomicBoolean(false));
        modules.put("SusChunkFinder", new AtomicBoolean(false));
        modules.put("RegionMap", new AtomicBoolean(false));
        // Visuals
        modules.put("CustomBlockOutline", new AtomicBoolean(false));
        modules.put("HUD", new AtomicBoolean(false));
        modules.put("HitParticles", new AtomicBoolean(false));
        modules.put("MotionBull", new AtomicBoolean(false));
        modules.put("LiveInterface", new AtomicBoolean(false));
        modules.put("FreeCam", new AtomicBoolean(false));
        modules.put("CustomAC", new AtomicBoolean(false));
        modules.put("Pink", new AtomicBoolean(false));
        // Client
        modules.put("CustomPtu", new AtomicBoolean(false));
        modules.put("CoordSnapper", new AtomicBoolean(false));
        modules.put("AutoWalk", new AtomicBoolean(false));
        modules.put("Zoom", new AtomicBoolean(false));
        modules.put("FreeLook", new AtomicBoolean(false));
        modules.put("SpawnerProtect", new AtomicBoolean(false));
        modules.put("GambleReger", new AtomicBoolean(false));
        // Extra from image
        modules.put("SkinProtect", new AtomicBoolean(false));
        modules.put("MaceBomber", new AtomicBoolean(false));
        modules.put("TriggerBot", new AtomicBoolean(false));
        modules.put("ArachTruhnger", new AtomicBoolean(false));
        modules.put("ShieldBreaker", new AtomicBoolean(false));
        modules.put("FakeStats", new AtomicBoolean(false));
        modules.put("FakeRoles", new AtomicBoolean(false));
        modules.put("WeatherEntryer", new AtomicBoolean(false));
        modules.put("Holderotem", new AtomicBoolean(false));
        modules.put("ChunkBinger", new AtomicBoolean(false));
    }

    public void toggleOpen() {
        boolean newState = !isOpen.get();
        isOpen.set(newState);
        if (newState) {
            MinecraftClient.getInstance().setScreen(this);
        } else {
            MinecraftClient.getInstance().setScreen(null);
        }
    }

    @Override
    public void render(DrawContext context, int mouseX, int mouseY, float delta) {
        if (!isOpen.get()) return;
        long now = System.currentTimeMillis();
        if (now - lastRenderTime < 1000 / FRAME_CAP) return;
        lastRenderTime = now;

        int centerX = this.width / 2;
        int centerY = this.height / 2;
        int panelX = centerX - 200;
        int panelY = centerY - 225;

        context.fill(0, 0, this.width, this.height, 0xCC000000);
        context.fill(panelX, panelY, panelX + PANEL_WIDTH, panelY + PANEL_HEIGHT, 0xFF2D0A2D);
        drawBorderFast(context, panelX, panelY, PANEL_WIDTH, PANEL_HEIGHT, 0xFFFF69B4);

        context.drawText(this.textRenderer, "SKYLEB CLIENT", panelX + 10, panelY + 8, 0xFFFF69B4, false);
        context.drawText(this.textRenderer, "v1.21.11", panelX + 330, panelY + 8, 0xFFDDA0DD, false);

        String[] categories = {"Combat", "Misc", "Render", "Visuals", "Client"};
        int tabX = panelX + 10;
        for (String cat : categories) {
            context.fill(tabX, panelY + 28, tabX + 72, panelY + 48, 0xFF4A1A4A);
            drawBorderFast(context, tabX, panelY + 28, 72, 20, 0xFFFF69B4);
            context.drawText(this.textRenderer, cat, tabX + 8, panelY + 34, 0xFFFFB6C1, false);
            tabX += 78;
        }

        int listX = panelX + 10;
        int listY = panelY + 55;
        int listWidth = 380;
        int listHeight = 380;
        context.fill(listX, listY, listX + listWidth, listY + listHeight, 0xFF2A0D2A);
        drawBorderFast(context, listX, listY, listWidth, listHeight, 0xFFFF69B4);

        int visibleStart = scrollOffset;
        int visibleEnd = Math.min(visibleStart + VISIBLE_MODULES, modules.size());
        int idx = 0;
        int yPos = listY + 2;

        for (java.util.Map.Entry entry : modules.entrySet()) {
            if (idx < visibleStart || idx >= visibleEnd) { idx++; continue; }
            String name = entry.getKey();
            boolean enabled = entry.getValue().get();
            int yOffset = yPos + (idx - visibleStart) * MODULE_HEIGHT;

            int bgColor = (idx % 2 == 0) ? 0xFF3A1A3A : 0xFF2A0D2A;
            context.fill(listX + 2, yOffset, listX + listWidth - 2, yOffset + MODULE_HEIGHT - 1, bgColor);

            int toggleX = listX + listWidth - 55;
            int toggleColor = enabled ? 0xFFFF69B4 : 0xFF553355;
            context.fill(toggleX, yOffset + 3, toggleX + 45, yOffset + 17, toggleColor);
            drawBorderFast(context, toggleX, yOffset + 3, 45, 14, 0xFFFFB6C1);
            context.drawText(this.textRenderer, enabled ? "ON" : "OFF", toggleX + 12, yOffset + 5,
                    enabled ? 0x000000 : 0xFFCC99CC, false);
            context.drawText(this.textRenderer, name, listX + 6, yOffset + 4, 0xFFFFDDFF, false);
            idx++;
        }

        int totalModules = modules.size();
        if (totalModules > VISIBLE_MODULES) {
            int scrollBarX = listX + listWidth - 5;
            int scrollBarHeight = (listHeight * VISIBLE_MODULES) / totalModules;
            int scrollBarY = listY + (listHeight - scrollBarHeight) * scrollOffset / (totalModules - VISIBLE_MODULES);
            context.fill(scrollBarX, scrollBarY, scrollBarX + 3, scrollBarY + scrollBarHeight, 0xFFFF69B4);
        }

        context.drawText(this.textRenderer, "Press K to toggle | Scroll", panelX + 10, panelY + 435, 0xFFDDA0DD, false);
    }

    private void drawBorderFast(DrawContext context, int x, int y, int width, int height, int color) {
        context.fill(x, y, x + width, y + 1, color);
        context.fill(x, y + height - 1, x + width, y + height, color);
        context.fill(x, y + 1, x + 1, y + height - 1, color);
        context.fill(x + width - 1, y + 1, x + width, y + height - 1, color);
    }

    @Override
    public boolean mouseClicked(double mouseX, double mouseY, int button) {
        if (!isOpen.get() || button != 0) return false;
        int panelX = this.width / 2 - 200;
        int panelY = this.height / 2 - 225;
        int listX = panelX + 10;
        int listY = panelY + 55;
        int listWidth = 380;

        int visibleStart = scrollOffset;
        int idx = 0;
        int yPos = listY + 2;
        for (java.util.Map.Entry entry : modules.entrySet()) {
            if (idx < visibleStart || idx >= visibleStart + VISIBLE_MODULES) { idx++; continue; }
            int yOffset = yPos + (idx - visibleStart) * MODULE_HEIGHT;
            int toggleX = listX + listWidth - 55;
            if (mouseX >= toggleX && mouseX <= toggleX + 45 &&
                mouseY >= yOffset + 3 && mouseY <= yOffset + 17) {
                AtomicBoolean val = entry.getValue();
                val.set(!val.get());
                dispatchModule(entry.getKey(), val.get());
                return true;
            }
            idx++;
        }
        if (mouseX < panelX || mouseX > panelX + PANEL_WIDTH ||
            mouseY < panelY || mouseY > panelY + PANEL_HEIGHT) {
            toggleOpen();
            return true;
        }
        return false;
    }

    @Override
    public boolean mouseScrolled(double mouseX, double mouseY, double horizontalAmount, double verticalAmount) {
        if (!isOpen.get()) return false;
        int maxScroll = Math.max(0, modules.size() - VISIBLE_MODULES);
        scrollOffset = (int) Math.max(0, Math.min(maxScroll, scrollOffset - verticalAmount));
        return true;
    }

    @Override
    public boolean keyPressed(int keyCode, int scanCode, int modifiers) {
        if (keyCode == GLFW.GLFW_KEY_K) {
            toggleOpen();
            return true;
        }
        return false;
    }

    @Override
    public boolean shouldPause() { return false; }
    @Override
    public boolean shouldCloseOnEsc() { return false; }

    private void dispatchModule(String name, boolean enabled) {
        new Thread(() -> {
            try {
                switch (name) {
                    case "AutoTotem": break;
                    case "AutoCrystal": break;
                    case "FullBright": break;
                    case "PlayerESP": break;
                    case "ChunkFinder": break;
                    case "SusChunkFinder": break;
                    default: break;
                }
            } catch (Exception e) {}
        }).start();
    }
}

// ============================================================
// FILE: MixinKeyboard.java
// ============================================================
package net.skyleb.client;

import net.minecraft.client.Keyboard;
import org.lwjgl.glfw.GLFW;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.injection.At;
import org.spongepowered.asm.mixin.injection.Inject;
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;

@Mixin(Keyboard.class)
public class MixinKeyboard {
    @Inject(method = "onKey", at = @At("HEAD"))
    private void onKey(long window, int key, int scancode, int action, int modifiers, CallbackInfo ci) {
        if (action == GLFW.GLFW_PRESS && key == GLFW.GLFW_KEY_K) {
            HackGUI.KeyHandler.onKeyPress(key);
        }
    }
}

// ============================================================
// FILE: MixinPacketHandler.java
// ============================================================
package net.skyleb.client;

import net.minecraft.client.network.ClientPlayNetworkHandler;
import net.minecraft.network.packet.Packet;
import net.minecraft.network.packet.c2s.play.KeepAliveC2SPacket;
import net.minecraft.network.packet.c2s.play.PlayerMoveC2SPacket;
import net.minecraft.network.packet.c2s.play.ClientStatusC2SPacket;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.injection.At;
import org.spongepowered.asm.mixin.injection.Inject;
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
import java.util.Random;

@Mixin(ClientPlayNetworkHandler.class)
public class MixinPacketHandler {
    private static final Random RANDOM = new Random();

    @Inject(method = "sendPacket", at = @At("HEAD"), cancellable = true)
    private void onSendPacket(Packet packet, CallbackInfo ci) {
        if (packet instanceof PlayerMoveC2SPacket) {
            try {
                Thread.sleep(RANDOM.nextInt(30) + 5);
            } catch (InterruptedException ignored) {}
        }
        if (packet instanceof KeepAliveC2SPacket) {
            // jitter
        }
        if (packet instanceof ClientStatusC2SPacket && RANDOM.nextInt(10) < 2) {
            ci.cancel();
        }
    }
}

// ============================================================
// FILE: fabric.mod.json
// ============================================================
{
  "schemaVersion": 1,
  "id": "skylebclient",
  "version": "1.0.0",
  "name": "Skyleb Client",
  "description": "Utility client for DonutSMP",
  "authors": ["Skyleb"],
  "contact": {},
  "license": "MIT",
  "icon": "assets/skyleb/icon.png",
  "environment": "client",
  "entrypoints": {
    "client": ["net.skyleb.client.SkylebClientMod"]
  },
  "mixins": ["skyleb.mixins.json"],
  "depends": {
    "fabricloader": ">=0.15.11",
    "fabric-api": ">=0.92.0",
    "minecraft": "~1.21.11",
    "java": ">=21"
  }
}

// ============================================================
// FILE: skyleb.mixins.json
// ============================================================
{
  "required": true,
  "minVersion": "0.8",
  "package": "net.skyleb.client",
  "compatibilityLevel": "JAVA_21",
  "client": [
    "MixinKeyboard",
    "MixinPacketHandler"
  ],
  "injectors": {
    "defaultRequire": 1
  }
}

// ============================================================
// FILE: build.gradle
// ============================================================
plugins {
    id 'fabric-loom' version '1.6-SNAPSHOT'
    id 'java'
}

version = '1.0.0'
group = 'net.skyleb'
archivesBaseName = 'SkylebClient'

repositories {
    mavenCentral()
}

dependencies {
    minecraft "com.mojang:minecraft:1.21.11"
    mappings "net.fabricmc:yarn:1.21.11+build.1:v2"
    modImplementation "net.fabricmc:fabric-loader:0.15.11"
    modImplementation "net.fabricmc.fabric-api:fabric-api:0.92.0+1.21.11"
}

processResources {
    inputs.property "version", project.version
    filesMatching("fabric.mod.json") {
        expand "version": project.version
    }
}

tasks.withType(JavaCompile).configureEach {
    it.options.release = 21
}

jar {
    from("LICENSE") {
        rename { "${it}_${archivesBaseName}" }
    }
}

// ============================================================
// FILE: settings.gradle
// ============================================================
pluginManagement {
    repositories {
        maven {
            name = 'Fabric'
            url = 'https://maven.fabricmc.net/'
        }
        gradlePluginPortal()
    }
}
Kodari AI
KodariSep 1 at 6:49 pm 1
SkylebUtilityClient
A Fabric client-side utility mod for Minecraft 1.21.11 featuring a toggleable GUI (press K) with 50+ modules across Combat, Misc, Render, Visuals, and Client categories. Includes a pink-themed hack menu with scrollable module list, click-to-toggle functionality, and module dispatch system. Features mixin-based keyboard handling and packet manipulation for movement jitter and packet filtering. Built with Fabric Loader 0.15.11, Fabric API 0.92.0, and Java 21 compatibility.
  1. Create a Fabric 1.21.11 client-only project with split main/client source sets and current Yarn/Loom versions.

  2. Implement the K-key module GUI with the supplied module list, scrolling, toggles, and pink styling.

  3. Remove the broken packet/keyboard mixins and keep the mod passive: toggles are UI state only, with no packet interception or cheat behavior.

Created a build-ready Fabric 1.21.11 client mod project.

  • Added current Loom, Yarn, Fabric Loader/API, and Java 21 configuration.

  • Implemented the K-keybind using the modern KeyBinding.Category.create(...) API.

  • Added the pink Skyleb module GUI with scrolling and toggle states.

  • Removed packet manipulation and broken keyboard mixins; toggles are UI-only.

  • Added fabric.mod.json and language translations.

Build the JAR with:

Shell
./gradlew build

The finished mod will be located at:

Plain Text
build/libs/skyleb-client-1.0.0.jar
Discord

The compilation failed with this error:

code
Compilation failed with 2 error(s):

ERROR in src/main/java/client/java/net/skyleb/client/HackGUI.java at line 132: method does not override or implement a method from a supertype
    @Override
    ^

ERROR in   src/main/java/client/java/net/skyleb/client/HackGUI.java at line 132: method does not override or implement a method from a supertype
      @Override
      ^


=== COMPILATION ERROR ANALYSIS ===

FILES TO INVESTIGATE:
  - src/main/java/client/java/net/skyleb/client/HackGUI.java
  -   src/main/java/client/java/net/skyleb/client/HackGUI.java

Please fix this error by creating a new artifact with the corrected code.

Kodari AI
KodariSep 1 at 6:51 pm 1
  1. Inspect HackGUI.java and its screen superclass usage.

  2. Replace the invalid override with the correct 1.21.11 screen method signature, preserving the existing GUI behavior.

Fixed HackGUI.java for the 1.21.11 GUI API:

  • Updated mouseClicked to use Click click, boolean doubled.

  • Added the Click import.

  • Adapted button and coordinate access through click.button(), click.x(), and click.y().

Discord

how do i download the jar?

Kodari AI
KodariSep 1 at 6:52 pm 1

After the project recompiles successfully, use the Download JAR button in the build results/artifact panel. The JAR is generated by the platform after verification; the source patch itself is not a downloadable JAR.

If you don’t see the button, rerun the compilation/build and wait for a successful result.

Discord

i downloaded the files

Kodari AI
KodariSep 1 at 6:55 pm 1

To install the mod:

  1. Make sure you have Fabric Loader for Minecraft 1.21.11 installed.

  2. Download Fabric API for 1.21.11.

  3. Open your Minecraft mods folder:

    • Windows: %appdata%\.minecraft\mods

    • macOS: ~/Library/Application Support/minecraft/mods

    • Linux: ~/.minecraft/mods

  4. Copy the downloaded mod .jar into that folder.

  5. Launch Minecraft using the Fabric 1.21.11 profile.

If you downloaded a .zip, extract it first and place the mod .jar from inside the archive into mods. Do not place the source-code files or the ZIP itself there.

Discord

whats the fabric loader

Kodari AI
KodariSep 1 at 6:56 pm 1

Fabric Loader is the lightweight program that lets Minecraft load Fabric mods. It is separate from Fabric API:

  • Fabric Loader: loads and runs mods.

  • Fabric API: a library many mods require.

  • Your mod: the .jar you downloaded.

To install it:

  1. Download the installer for your operating system.

  2. Run it and select your Minecraft version, such as 1.21.11.

  3. Leave “Create Profile” enabled and click Install.

  4. In the Minecraft Launcher, select the new Fabric profile.

  5. Put the mod .jar and Fabric API .jar in your .minecraft/mods folder.

  6. Launch Minecraft using the Fabric profile.

Discord

wheres the jar of those send them both here

Kodari AI
KodariSep 1 at 6:58 pm 1

I can’t attach external JAR files directly here, but you can download them from the official sources:

Place these in your mods folder:

Plain Text
your-mod.jar
fabric-api-...+1.21.11.jar

Then launch the Fabric 1.21.11 profile.

Discord

wheres my mod jar

Kodari AI
KodariSep 1 at 6:58 pm 1

Your mod JAR should be in the downloaded build artifact, usually inside a ZIP. Extract it and look for a file ending in:

Plain Text
.jar

It may be named something like:

Plain Text
skyleb-1.0.0.jar

Place that JAR in:

Plain Text
.minecraft/mods

If the downloaded files contain only source folders such as src, gradle, and build.gradle, then you downloaded the project source rather than the compiled mod. In that case, rerun the build and download the successful build artifact.

Discord

i dont see the build artifact

Kodari AI
KodariSep 2 at 12:12 pm 2

A mod JAR is created only after a successful build. If there’s no build-artifact panel, the project likely hasn’t compiled successfully.

Try this:

  1. Run the project’s Build/Compile action again.

  2. Wait for the result to say 成功 / Successful.

  3. Download the .jar from the Artifacts or Build outputs section—not the source-files download.

  4. Put the resulting JAR in .minecraft/mods.

If building locally, run:

Shell
./gradlew build

On Windows:

Shell
gradlew.bat build

Then find the mod here:

Plain Text
build/libs/

Use the regular mod JAR, not one ending in -sources.jar or -dev.jar. If the build fails again, paste the newest error and I’ll fix it.

Discord

build

Kodari AI
KodariSep 2 at 12:15 pm 1

I can’t trigger the platform’s build/download job from this chat. Run the project’s Build/Compile action again. Once it succeeds, download the generated artifact and extract the mod .jar.

For a local build:

Shell
./gradlew build

On Windows:

Shell
gradlew.bat build

The JAR will be in:

Plain Text
build/libs/

If it fails, send the new compilation error.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
gradle.properties
settings.gradle
Code
7 328
src/client/java/net/skyleb/client/SkylebClientMod.java
package net.skyleb.client;

import net.fabricmc.api.ClientModInitializer;
import net.fabricmc.fabric.api.client.event.lifecycle.v1.ClientTickEvents;
import net.fabricmc.fabric.api.client.keybinding.v1.KeyBindingHelper;
import net.minecraft.client.option.KeyBinding;
import net.minecraft.util.Identifier;
import org.lwjgl.glfw.GLFW;

public class SkylebClientMod implements ClientModInitializer {
    private static final KeyBinding.Category CATEGORY = KeyBinding.Category.create(
            Identifier.of("skylebclient", "main")
    );

    private static HackGUI gui;
    private static KeyBinding toggleKey;

    @Override
    public void onInitializeClient() {
        toggleKey = KeyBindingHelper.registerKeyBinding(new KeyBinding(
                "key.skyleb.toggle",
                GLFW.GLFW_KEY_K,
                CATEGORY
        ));

        ClientTickEvents.END_CLIENT_TICK.register(client -> {
            while (toggleKey.wasPressed()) {
                if (gui == null) {
                    gui = new HackGUI();
                }
                gui.toggleOpen();
            }
        });
    }
}