luke fulcher
📎 1 file 3,400 chars
📄
pasted-code-1791761312791.txt
txt 85 lines
▶
# Create Nova Client — Minecraft Java Fabric 1.21.11

Build a complete, functional Minecraft Java Edition client-side Fabric mod called **Nova Client**, targeting Minecraft **1.21.11** and Java 21.

The mod should have a polished, minimal dark interface inspired by the organization, usability, and customization found in clients such as Lunar Client and Dawn Client. Create an original design and original branding rather than copying their exact interfaces, logos, or proprietary assets.

## 1. Main ClickGUI

Create a custom in-game ClickGUI that opens and closes with the **Right Shift** key by default.

Design:
- Modern, minimal dark theme.
- Dark charcoal background with slightly lighter panels.
- Subtle purple or lavender accent color.
- Rounded panels, clean spacing, smooth animations, and readable typography.
- Custom Nova Client logo and branding.
- Search bar to find modules instantly.
- Category sidebar on the left.
- Module list in the center.
- Settings panel on the right.
- Toggle switches for modules.
- Sliders, dropdowns, and color pickers when appropriate.
- Search, category selection, and module toggles must work.
- Support mouse scrolling, dragging the GUI window, and closing it with Escape.
- Keep the interface responsive at different screen resolutions.
- Never freeze the game while the GUI is open.

Categories:
- Combat — only fair-play, non-automated utilities.
- Visuals
- HUD
- Movement
- Player
- World
- Performance
- Miscellaneous

## 2. Modules

Implement functional modules, not placeholder buttons.

### HUD
- FPS counter.
- XYZ coordinates display.
- Keystrokes display.
- Armor status display.
- Direction and facing indicator.
- Clock.
- CPS counter based on the player's actual mouse clicks.
- Customizable HUD editor with draggable elements.
- Individual HUD element visibility, scale, position, and color settings.

### Visuals
- Fullbright or configurable brightness.
- Custom crosshair with size, gap, thickness, and color settings.
- Customizable nametag appearance using information normally available to the client.
- Toggleable weather rendering.
- Toggleable cosmetic particle rendering where supported.
- Configurable fog appearance.
- Minimal on-screen information display.

All visual modules must use supported client-side rendering APIs and work without requiring server modifications whenever technically possible.

### Movement and Player Quality of Life
- Toggle Sprint using legitimate player sprint controls.
- Toggle Sneak using legitimate player sneak controls.
- Zoom with adjustable sensitivity.
- Auto-jump toggle using vanilla-compatible controls.
- Reachable settings and clear descriptions for each module.

Do not add movement speed hacks, automated combat, aim locking, packet manipulation for unfair advantages, anti-cheat bypasses, or features designed to give an unfair advantage on multiplayer servers.

### Performance
- Display current FPS and frame-time information.
- Provide safe rendering and visual settings.
- Avoid unnecessary per-frame allocations.
- Keep all modules lightweight and disable inactive rendering work.

## 3. Module system

Create a reusable module framework with:
- A base Module class.
- Module name, description, category, enabled state, and keybind.
- Enable and disable callbacks.
- Typed settings such
Kodari AI
KodariOct 12 at 12:11 am 15
NovaClient
Nova Client is a client-side Fabric mod for Minecraft 1.21.11 that provides a polished dark-themed ClickGUI with a category sidebar, searchable module list, and settings panel. It includes functional HUD modules (FPS, coordinates, keystrokes, armor, direction, clock, CPS), visual enhancements (fullbright, custom crosshair, nametag, weather/particle/fog toggles), movement QoL features (toggle sprint/sneak, zoom, auto-jump), and performance monitoring. The mod features a draggable HUD editor, toggle switches, sliders, dropdowns, color pickers, mouse scrolling, window dragging, and Escape-to-close functionality. All modules are fair-play, lightweight, and avoid per-frame allocations while maintaining responsive UI performance.
  1. Build the client entrypoint, typed module/settings framework, and Right Shift binding.

  2. Add the owo-ui ClickGUI with search, categories, module toggles, and settings.

  3. Implement client HUD/visual/QoL modules and draggable HUD editing.

  4. Add Fabric metadata, resources, and the required library manifest.

Created a client-only Fabric 1.21.11 Nova Client project with the original logo, owo-lib GUI, and module framework.

  • Controls: Right Shift toggles the ClickGUI, H opens the HUD editor, and C holds zoom.

  • ClickGUI: Search and category filtering, module toggles, typed settings, scrolling, a draggable window, and a responsive layout. Opening it doesn’t pause the game.

  • HUD: FPS, coordinates, keystrokes, armor, facing, clock, CPS, frame time, and compact info displays. HUD elements can be toggled, repositioned by dragging, and customized by scale and color.

  • Visuals and QoL: Custom crosshair, weather and particle rendering toggles, nametag recoloring, fog tint, maximum supported vanilla lightmap gamma, toggle sprint/sneak, and vanilla auto-jump.

  • Added Fabric/Loom metadata, client mixins, translations, and manifest.kod for owo-lib. No items or survival recipes are added; features are client-side and require no server changes.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
gradle.properties
manifest.kod
settings.gradle
Code
28 1,646
src/client/java/dev/nova/client/NovaClient.java
package dev.nova.client;

import dev.nova.client.gui.ClickGuiScreen;
import dev.nova.client.gui.HudEditorScreen;
import dev.nova.client.input.ClickTracker;
import dev.nova.client.module.Module;
import dev.nova.client.module.ModuleManager;
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.util.Identifier;
import org.lwjgl.glfw.GLFW;

public final class NovaClient implements ClientModInitializer {
    public static final String MOD_ID = "novaclient";
    public static final ModuleManager MODULES = new ModuleManager();
    public static KeyBinding ZOOM_KEY;
    private static KeyBinding clickGuiKey;
    private static KeyBinding hudEditorKey;

    @Override
    public void onInitializeClient() {
        NovaModules.register(MODULES);
        KeyBinding.Category category = KeyBinding.Category.create(Identifier.of(MOD_ID, "main"));
        clickGuiKey = KeyBindingHelper.registerKeyBinding(new KeyBinding("key.novaclient.click_gui", GLFW.GLFW_KEY_RIGHT_SHIFT, category));
        hudEditorKey = KeyBindingHelper.registerKeyBinding(new KeyBinding("key.novaclient.hud_editor", GLFW.GLFW_KEY_H, category));
        ZOOM_KEY = KeyBindingHelper.registerKeyBinding(new KeyBinding("key.novaclient.zoom", GLFW.GLFW_KEY_C, category));
        HudOverlay.register(MODULES);

        ClientTickEvents.END_CLIENT_TICK.register(client -> {
            while (clickGuiKey.wasPressed()) {
                if (client.currentScreen instanceof ClickGuiScreen) {
                    client.setScreen(null);
                } else {
                    client.setScreen(new ClickGuiScreen(MODULES));
                }
            }
            while (hudEditorKey.wasPressed()) {
                client.setScreen(new HudEditorScreen(MODULES));
            }
            NovaModules.tick(MODULES, client, ZOOM_KEY);
        });
    }

    public static boolean isEnabled(String moduleName) {
        return MODULES.find(moduleName).map(Module::enabled).orElse(false);
    }

    public static void recordMouseClick() {
        ClickTracker.recordClick();
    }
}