Ladafakew Ladafakew

Create a "hack" client fabric mod where it has your logo on the HUD, called 'kodari'. Make it so if I press the RightShift button a clean GUI opens with modules like FullBright, BlockEsp, FreeCam, AutoSprint, AutoTotem, CrystalAura, and stuff like that. make them work, and let me select blocks to the BlockESP. Add different categories to the GUI like Combat, Render, Vision, All, Other. To the combat category add the AutoTotem, CrystalAura. To the Render add BlockESP, FreeCam. To the vision add FullBright. To the other add AutoSprint.

Kodari AI
KodariNov 3 at 11:34 am 6
KodariHackClient
Kodari is a Fabric mod for Minecraft 1.21.1 that adds a hack client interface. Pressing RightShift opens a clean GUI with categorized modules: Combat (AutoTotem, CrystalAura), Render (BlockESP, FreeCam), Vision (FullBright), and Other (AutoSprint). Features include a HUD logo, working module toggles, and a block selector for BlockESP to highlight chosen blocks in the world.
  1. Build the kodari Fabric 1.21.11 client mod and register its client features.

  2. Add the Right Shift owo-ui module screen with the requested categories and selectable BlockESP targets.

  3. Implement the HUD logo and the requested render, movement, and combat modules.

Created the kodari Fabric 1.21.11 client mod. Right Shift opens a custom owo-ui screen with the requested Combat, Render, Vision, All, and Other categories, plus selectable BlockESP targets. The HUD displays a Kodari logo.

Implemented FullBright, block outlines, FreeCam, AutoSprint, AutoTotem, and CrystalAura. CrystalAura attacks nearby end crystals and can place crystals when one is in the hotbar and there’s a valid obsidian spot nearby.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
gradle.properties
manifest.kod
settings.gradle
Code
9 631
src/client/java/com/kodari/KodariClient.java
package com.kodari;

import net.fabricmc.api.ClientModInitializer;
import net.fabricmc.fabric.api.client.event.lifecycle.v1.ClientTickEvents;
import net.fabricmc.fabric.api.client.rendering.v1.hud.HudElementRegistry;
import net.minecraft.block.Block;
import net.minecraft.block.Blocks;
import net.minecraft.client.MinecraftClient;
import net.minecraft.client.network.ClientPlayerEntity;
import net.minecraft.client.world.ClientWorld;
import net.minecraft.entity.Entity;
import net.minecraft.entity.EntityType;
import net.minecraft.entity.SpawnReason;
import net.minecraft.entity.decoration.EndCrystalEntity;
import net.minecraft.entity.player.PlayerEntity;
import net.minecraft.entity.player.PlayerInventory;
import net.minecraft.item.ItemStack;
import net.minecraft.item.Items;
import net.minecraft.screen.PlayerScreenHandler;
import net.minecraft.screen.slot.SlotActionType;
import net.minecraft.text.Text;
import net.minecraft.util.Hand;
import net.minecraft.util.Identifier;
import net.minecraft.util.hit.BlockHitResult;
import net.minecraft.util.math.BlockPos;
import net.minecraft.util.math.Direction;
import net.minecraft.util.math.Vec3d;
import org.lwjgl.glfw.GLFW;

import java.util.Collections;
import java.util.ArrayList;
import java.util.Comparator;
import java.util.EnumMap;
import java.util.HashSet;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import java.util.Set;

public class KodariClient implements ClientModInitializer {
    public enum Module {
        FULL_BRIGHT,
        BLOCK_ESP,
        FREE_CAM,
        AUTO_SPRINT,
        AUTO_TOTEM,
        CRYSTAL_AURA
    }

    private static final EnumMap<Module, Boolean> MODULES = new EnumMap<>(Module.class);
    private static final Map<Block, String> BLOCK_NAMES = new LinkedHashMap<>();
    private static final Set<Block> ESP_BLOCKS = new HashSet<>();
    private static List<String> espHudLines = List.of();
    private static final double FREECAM_SPEED = 0.65;
    private static final double ESP_RADIUS = 8.0;

    private static Entity freecamEntity;
    private static ClientWorld freecamWorld;
    private static double freecamX;
    private static double freecamY;
    private static double freecamZ;
    private static double playerX;
    private static double playerY;
    private static double playerZ;
    private static double previousGamma = 0.5;
    private static boolean freecamActive;
    private static boolean rightShiftDown;
    private static int crystalAuraCooldown;
    private static int espRefreshTicks;

    static {
        for (Module module : Module.values()) {
            MODULES.put(module, false);
        }

        addBlock(Blocks.COAL_ORE, "Coal Ore");
        addBlock(Blocks.IRON_ORE, "Iron Ore");
        addBlock(Blocks.DEEPSLATE_IRON_ORE, "Deepslate Iron Ore");
        addBlock(Blocks.GOLD_ORE, "Gold Ore");
        addBlock(Blocks.DEEPSLATE_GOLD_ORE, "Deepslate Gold Ore");
        addBlock(Blocks.LAPIS_ORE, "Lapis Ore");
        addBlock(Blocks.REDSTONE_ORE, "Redstone Ore");
        addBlock(Blocks.COPPER_ORE, "Copper Ore");
        addBlock(Blocks.DIAMOND_ORE, "Diamond Ore");
        addBlock(Blocks.DEEPSLATE_DIAMOND_ORE, "Deepslate Diamond Ore");
        addBlock(Blocks.EMERALD_ORE, "Emerald Ore");
        addBlock(Blocks.DEEPSLATE_EMERALD_ORE, "Deepslate Emerald Ore");
        addBlock(Blocks.ANCIENT_DEBRIS, "Ancient Debris");
        addBlock(Blocks.AMETHYST_BLOCK, "Amethyst Block");
        addBlock(Blocks.CHEST, "Chest");
        addBlock(Blocks.SPAWNER, "Spawner");
        ESP_BLOCKS.addAll(BLOCK_NAMES.keySet());
    }

    @Override
    public void onInitializeClient() {
        ClientTickEvents.END_CLIENT_TICK.register(KodariClient::onClientTick);
        HudElementRegistry.addLast(Identifier.of("kodari", "brand"), (context, tickCounter) -> {
            context.fill(8, 8, 102, 31, 0xB5080C14);
            context.fill(8, 30, 102, 31, 0xFF4FD1C5);
            context.drawText(MinecraftClient.getInstance().textRenderer, Text.literal("KODARI"), 15, 13, 0xFFFFFFFF, true);
            context.drawText(MinecraftClient.getInstance().textRenderer, Text.literal("CLIENT MODULES"), 15, 22, 0xFF9AA9BD, false);
            if (isEnabled(Module.BLOCK_ESP) && !espHudLines.isEmpty()) {
                int bottom = 39 + espHudLines.size() * 11;
                context.fill(8, 36, 210, bottom, 0xB5080C14);
                for (int index = 0; index < espHudLines.size(); index++) {
                    context.drawText(MinecraftClient.getInstance().textRenderer, Text.literal(espHudLines.get(index)),
                            14, 39 + index * 11, 0xFF4FD1C5, true);
                }
            }
        });
    }

    public static boolean isEnabled(Module module) {
        return MODULES.get(module);
    }

    public static void setEnabled(Module module, boolean enabled) {
        if (MODULES.get(module) == enabled) {
            return;
        }

        if (module == Module.FREE_CAM) {
            if (enabled && !startFreecam()) {
                return;
            }
            if (!enabled) {
                stopFreecam();
            }
        } else if (module == Module.FULL_BRIGHT) {
            MinecraftClient client = MinecraftClient.getInstance();
            if (enabled) {
                previousGamma = client.options.getGamma().getValue();
                client.options.getGamma().setValue(1.0);
            } else {
                client.options.getGamma().setValue(previousGamma);
            }
        }

        MODULES.put(module, enabled);
        if (module == Module.BLOCK_ESP && !enabled) {
            espHudLines = List.of();
        }
    }

    public static boolean isFreecamActive() {
        return freecamActive;
    }

    public static Map<Block, String> getBlockTargets() {
        return Collections.unmodifiableMap(BLOCK_NAMES);
    }

    public static boolean isBlockTargetSelected(Block block) {
        return ESP_BLOCKS.contains(block);
    }

    public static void setBlockTargetSelected(Block block, boolean selected) {
        if (selected) {
            ESP_BLOCKS.add(block);
        } else {
            ESP_BLOCKS.remove(block);
        }
    }

    private static void addBlock(Block block, String name) {
        BLOCK_NAMES.put(block, name);
    }

    private static void onClientTick(MinecraftClient client) {
        boolean rightShiftPressed = GLFW.glfwGetKey(client.getWindow().getHandle(), GLFW.GLFW_KEY_RIGHT_SHIFT) == GLFW.GLFW_PRESS;
        if (rightShiftPressed && !rightShiftDown) {
            client.setScreen(new KodariHackScreen());
        }
        rightShiftDown = rightShiftPressed;

        if (client.player == null || client.world == null) {
            if (freecamActive) {
                setEnabled(Module.FREE_CAM, false);
            }
            return;
        }

        if (freecamActive) {
            if (client.world != freecamWorld) {
                setEnabled(Module.FREE_CAM, false);
            } else {
                tickFreecam(client);
            }
        }

        if (isEnabled(Module.AUTO_SPRINT) && !freecamActive) {
            client.player.setSprinting(client.options.forwardKey.isPressed() && !client.player.isSneaking());
        }

        if (isEnabled(Module.AUTO_TOTEM)) {
            equipTotem(client);
        }

        if (isEnabled(Module.CRYSTAL_AURA)) {