._.mkpk._.

Potrzebuje moda który będzie clientem z wszystkim z modami typu CPS FPS Keys czyli WSAD Space TNT Timer Puki co i to wszystko ustawiać pod Prawym Shiftem oraz co ważne client ma przy nicku gracza mieć jego ikone i inni gracze używający tego też więc w plikach moda zostaw miejsce na api który będzie łączyć sie z API który wyśle i odbierze zapytanie kto co ma i jakie UID wyświetlić ogólnie takie coś ale puste pole na link do api

Kodari AI
KodariJun 24 at 5:38 pm 40
AuraClient
A Fabric 1.21.4 client-side mod featuring a fully customizable HUD with CPS counter, FPS display, keystroke viewer (WASD + Space), TNT timer, and more. All modules are toggled and repositioned via a Right Shift GUI. Includes a cosmetic system that renders player-specific icons above names using an external API (placeholder endpoint) to fetch and display UIDs and assigned icons for all mod users.
AuraClient
A Fabric 1.21.4 client-side mod featuring a fully customizable HUD with CPS counter (left & right), FPS display, keystroke viewer (WASD + Space), and TNT Timer. All modules are draggable and toggled via a Right Shift editor GUI with live preview. Includes a cosmetic system that renders player-specific icons above their heads using an external API placeholder (empty URL field ready for integration) to fetch and cache UID-linked icons for all mod users.

Here’s the full mod — 21 files covering project setup, HUD modules, editor GUI, cosmetic API system, and mixin hooks.


Here’s a summary of what was built:

🗂️ Structure

  • Split source sets — src/main (common) and src/client (client-only), correct for Fabric 1.21.4

🎮 HUD Modules

Module
Default position
Description
FPS
top-left
Green/yellow/red color based on framerate
CPS
below FPS
Left & right click counts per second
Keystrokes
below CPS
WASD + LMB/RMB grid with press highlight
TNT Timer
lower
Nearest TNT fuse countdown + total count

⚙️ HUD Editor (Right Shift)

  • Drag any module to reposition

  • Right-click any module to toggle it on/off

  • Live preview while editing, auto-saves on close

🎨 Cosmetic System

  • AuraConfig.cosmeticApiUrl — empty string placeholder, set it to your API base URL

  • CosmeticManager — async HTTP fetch per player UUID, caches PNG icons as NativeImageBackedTexture

  • CosmeticRenderer — billboard icon rendered above each player’s head in world space using WorldRenderEvents.AFTER_ENTITIES

  • API contract documented in CosmeticManager.java — expects { "uid": "...", "icon_url": "..." }

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
gradle.properties
settings.gradle
Code
22 932
src/client/java/com/auraclient/AuraClientMod.java
package com.auraclient;

import com.auraclient.config.ConfigManager;
import com.auraclient.cosmetic.CosmeticManager;
import com.auraclient.cosmetic.CosmeticRenderer;
import com.auraclient.gui.HudEditorScreen;
import com.auraclient.hud.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.fabricmc.fabric.api.client.networking.v1.ClientPlayConnectionEvents;
import net.fabricmc.fabric.api.client.rendering.v1.HudRenderCallback;
import net.fabricmc.fabric.api.client.rendering.v1.WorldRenderEvents;
import net.minecraft.client.MinecraftClient;
import net.minecraft.client.option.KeyBinding;
import net.minecraft.client.util.InputUtil;
import org.lwjgl.glfw.GLFW;

public class AuraClientMod implements ClientModInitializer {
    private static KeyBinding editorKey;

    @Override
    public void onInitializeClient() {
        ConfigManager.load();
        ModuleManager.initialize();

        editorKey = KeyBindingHelper.registerKeyBinding(new KeyBinding(
            "key.auraclient.editor",
            InputUtil.Type.KEYSYM,
            GLFW.GLFW_KEY_RIGHT_SHIFT,
            "category.auraclient.main"
        ));

        // HUD rendering — skip when editor is open (editor renders its own preview)
        HudRenderCallback.EVENT.register((context, tickCounter) -> {
            MinecraftClient client = MinecraftClient.getInstance();
            if (client.currentScreen instanceof HudEditorScreen) return;
            ModuleManager.renderAll(context, client);
        });

        // Per-tick logic + keybind polling
        ClientTickEvents.END_CLIENT_TICK.register(client -> {
            ModuleManager.tickAll(client);
            while (editorKey.wasPressed()) {
                client.setScreen(new HudEditorScreen());
            }
        });

        // Cosmetic icon rendering in world space
        WorldRenderEvents.AFTER_ENTITIES.register(CosmeticRenderer::render);

        // Clear cosmetic cache on disconnect so fresh data is loaded next session
        ClientPlayConnectionEvents.DISCONNECT.register((handler, client) ->
            CosmeticManager.clearCache());
    }
}