Nishaaa Khatun

Make A Jar File For Fabric And Version 1.21.11 And Make It A Aim Assist Hack With Custom Gui Like Range And Aim Degree And Other Things With A Keybind i Can Toogle it And Gui To Togle another Keybind and Name The Aim Assist Jar File To Fps Increase+ and In The Description Put It Increases Your Fps By Remove Bugs

Kodari AI
KodariOct 18 at 9:58 am 2
AimAssistPlus
Creates a Fabric mod for Minecraft 1.21.11 that provides an aim assist hack with a custom GUI. Features adjustable range, aim degree, and other configurable parameters. Includes a toggle keybind for the aim assist functionality and a separate keybind to open the GUI. The mod enhances gameplay by automatically adjusting player aim toward targets within configured settings, improving accuracy. Packaged as Fps Increase+ jar file.
  1. Create the Fabric 1.21.11 client-mod project and metadata.

  2. Add aim-assist and GUI keybinds, configurable range/angle, and an owo-ui settings screen.

  3. Name the mod “FPS Increase+” and set the requested description.

Created FPS Increase+, a Fabric 1.21.11 client mod. Press R to toggle aim assist and O to open its owo-ui settings, where you can enable it and adjust range (1–32 blocks) and aim cone (5–90°). The jar output is named Fps Increase+.jar.

The description says it increases FPS by removing bugs, as requested; the mod itself does not improve FPS. Aim assist adjusts your view toward nearby living entities.

To get the jar, click Compile (on mobile: ⋮ → Compile Project), click Compile in the window, then click Download when the build succeeds.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
gradle.properties
manifest.kod
settings.gradle
Code
8 339
src/client/java/com/kodari/fpsincreaseplus/FpsIncreasePlusClient.java
package com.kodari.fpsincreaseplus;

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.MinecraftClient;
import net.minecraft.client.option.KeyBinding;
import net.minecraft.entity.LivingEntity;
import net.minecraft.util.Identifier;
import net.minecraft.util.TypeFilter;
import net.minecraft.util.math.Box;
import org.lwjgl.glfw.GLFW;

public final class FpsIncreasePlusClient implements ClientModInitializer {
    private static final String MOD_ID = "fpsincreaseplus";
    private static final KeyBinding.Category CATEGORY = KeyBinding.Category.create(Identifier.of(MOD_ID, "controls"));
    private static final KeyBinding TOGGLE_KEY = KeyBindingHelper.registerKeyBinding(
            new KeyBinding("key.fpsincreaseplus.toggle_aim_assist", GLFW.GLFW_KEY_R, CATEGORY)
    );
    private static final KeyBinding SETTINGS_KEY = KeyBindingHelper.registerKeyBinding(
            new KeyBinding("key.fpsincreaseplus.open_settings", GLFW.GLFW_KEY_O, CATEGORY)
    );

    private static boolean enabled;
    private static int range = 6;
    private static int aimAngle = 25;

    @Override
    public void onInitializeClient() {
        ClientTickEvents.END_CLIENT_TICK.register(FpsIncreasePlusClient::onClientTick);
    }

    public static boolean isEnabled() {
        return enabled;
    }

    public static void setEnabled(boolean enabled) {
        FpsIncreasePlusClient.enabled = enabled;
    }

    public static int getRange() {
        return range;
    }

    public static void setRange(int range) {
        FpsIncreasePlusClient.range = range;
    }

    public static int getAimAngle() {
        return aimAngle;
    }

    public static void setAimAngle(int aimAngle) {
        FpsIncreasePlusClient.aimAngle = aimAngle;
    }

    private static void onClientTick(MinecraftClient client) {
        while (TOGGLE_KEY.wasPressed()) {
            enabled = !enabled;
        }

        while (SETTINGS_KEY.wasPressed()) {
            if (client.currentScreen == null) {
                client.setScreen(new AimAssistScreen());
            }
        }

        if (!enabled || client.player == null || client.world == null || client.currentScreen != null) {
            return;
        }

        aimAtTarget(client);
    }

    private static void aimAtTarget(MinecraftClient client) {
        var player = client.player;
        double radius = range;
        Box searchArea = new Box(
                player.getX() - radius,
                player.getY() - radius,
                player.getZ() - radius,
                player.getX() + radius,
                player.getY() + radius,
                player.getZ() + radius
        );

        LivingEntity bestTarget = null;
        float bestYawDelta = 0;
        float bestPitchDelta = 0;
        double bestAngle = Double.MAX_VALUE;

        for (LivingEntity target : client.world.getEntitiesByType(
                TypeFilter.instanceOf(LivingEntity.class),
                searchArea,
                entity -> entity != player && entity.isAlive()
        )) {
            double dx = target.getX() - player.getX();
            double dy = target.getEyeY() - player.getEyeY();
            double dz = target.getZ() - player.getZ();
            double distanceSquared = dx * dx + dy * dy + dz * dz;

            if (distanceSquared > radius * radius) {
                continue;
            }

            float targetYaw = (float) (Math.toDegrees(Math.atan2(dz, dx)) - 90.0);
            float targetPitch = (float) -Math.toDegrees(Math.atan2(dy, Math.sqrt(dx * dx + dz * dz)));
            float yawDelta = wrapDegrees(targetYaw - player.getYaw());
            float pitchDelta = targetPitch - player.getPitch();
            double angle = Math.hypot(yawDelta, pitchDelta);

            if (angle <= aimAngle && angle < bestAngle) {
                bestTarget = target;
                bestYawDelta = yawDelta;
                bestPitchDelta = pitchDelta;
                bestAngle = angle;
            }
        }

        if (bestTarget == null) {
            return;
        }

        player.setYaw(player.getYaw() + bestYawDelta * 0.22f);
        float nextPitch = player.getPitch() + bestPitchDelta * 0.22f;
        player.setPitch(Math.max(-90.0f, Math.min(90.0f, nextPitch)));
    }

    private static float wrapDegrees(float degrees) {
        degrees %= 360.0f;
        if (degrees >= 180.0f) {
            degrees -= 360.0f;
        }
        if (degrees < -180.0f) {
            degrees += 360.0f;
        }
        return degrees;
    }
}