Jordan Jernigan

can u build me a minecraft client named astro client that has a really cool ui with free cam storage esp etc for 1.21.11

Kodari AI
KodariOct 25 at 9:57 am 3
AstroClient
AstroClient is a Minecraft utility client for version 1.21.11 featuring a sleek, modern user interface with customizable HUD elements. It provides a free camera mode for unrestricted viewing angles, storage ESP to highlight chests and containers through walls, and entity ESP for tracking mobs and players. The client includes a modular settings system, keybind management, and a visually appealing clickable GUI with smooth animations. Built with performance optimization in mind, it offers toggleable features, configurable rendering options, and a clean command system for quick access to all functionalities.
  1. Set up Astro Client as a Fabric client mod for Minecraft 1.21.11.

  2. Add a polished, keyboard-toggleable module screen.

  3. Implement Freecam and through-wall storage highlighting.

Created Astro Client for Minecraft 1.21.11 with a custom module screen (Right Shift), Freecam, and a through-wall storage radar for nearby loaded chests, barrels, ender chests, and shulker boxes.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
gradle.properties
settings.gradle
Code
12 453
src/main/java/com/astro/client/AstroClient.java
package com.astro.client;

import com.astro.client.gui.AstroScreen;
import net.fabricmc.api.ClientModInitializer;
import net.minecraft.client.MinecraftClient;
import net.minecraft.client.network.ClientPlayerEntity;
import net.minecraft.util.math.Vec3d;
import org.lwjgl.glfw.GLFW;

public final class AstroClient implements ClientModInitializer {
    public static boolean freecamEnabled;
    public static boolean storageEspEnabled;

    private static boolean menuKeyDown;
    private static Vec3d freecamPosition;
    private static Vec3d playerAnchor;

    @Override
    public void onInitializeClient() {
    }

    public static void clientTick(MinecraftClient client) {
        boolean pressed = GLFW.glfwGetKey(client.getWindow().getHandle(), GLFW.GLFW_KEY_RIGHT_SHIFT) == GLFW.GLFW_PRESS;
        if (pressed && !menuKeyDown && client.currentScreen == null) {
            client.setScreen(new AstroScreen());
        }
        menuKeyDown = pressed;

        if (freecamEnabled && client.player == null) {
            freecamEnabled = false;
            freecamPosition = null;
            playerAnchor = null;
        }
    }

    public static void toggleFreecam(MinecraftClient client) {
        if (freecamEnabled) {
            freecamEnabled = false;
            freecamPosition = null;
            playerAnchor = null;
            return;
        }

        if (client.player == null) {
            return;
        }

        playerAnchor = client.player.getPos();
        freecamPosition = client.player.getEyePos();
        freecamEnabled = true;
    }

    public static void tickFreecam(ClientPlayerEntity player) {
        if (!freecamEnabled || player != MinecraftClient.getInstance().player || playerAnchor == null || freecamPosition == null) {
            return;
        }

        MinecraftClient client = MinecraftClient.getInstance();
        player.setPosition(playerAnchor.x, playerAnchor.y, playerAnchor.z);
        player.setVelocity(Vec3d.ZERO);
        if (client.currentScreen != null) {
            return;
        }

        Vec3d look = player.getRotationVec(1.0F);
        Vec3d forward = look.multiply(1.0, 0.0, 1.0).normalize();
        Vec3d right = new Vec3d(forward.z, 0.0, -forward.x);
        Vec3d movement = Vec3d.ZERO;

        if (client.options.forwardKey.isPressed()) movement = movement.add(look);
        if (client.options.backKey.isPressed()) movement = movement.subtract(look);
        if (client.options.rightKey.isPressed()) movement = movement.add(right);
        if (client.options.leftKey.isPressed()) movement = movement.subtract(right);
        if (client.options.jumpKey.isPressed()) movement = movement.add(0.0, 1.0, 0.0);
        if (client.options.sneakKey.isPressed()) movement = movement.add(0.0, -1.0, 0.0);

        if (movement.lengthSquared() > 0.0) {
            double speed = client.options.sprintKey.isPressed() ? 1.5 : 0.45;
            freecamPosition = freecamPosition.add(movement.normalize().multiply(speed));
        }
    }

    public static Vec3d getFreecamPosition() {
        return freecamPosition;
    }
}