Sk gamer

Project: NO LAG CRASH

Minecraft Java Edition 1.21.11 — Fabric Mod

Develop a lightweight, stable, and highly optimized Minecraft Java Edition 1.21.11 Fabric client-side mod named NO LAG CRASH.

The mod should feature a modern, polished GUI with four main categories: Combat, Crystal, Config, and Misc, plus a separate Render category.

  1. COMBAT

Organize the Combat category with the following modules:

  1. Auto Mace — Provide a configurable mace utility for practice worlds and compatible private servers. Include target-distance settings and fall-distance indicators.
  2. Trigger Bot — Provide a training-only combat timing assistant that demonstrates weapon cooldowns and attack timing against practice targets.
  3. Shield Disabler — Display shield status and provide configurable shield-counter timing indicators for practice scenarios.
  4. Reach Display — Show the player's current interaction range and configurable distance indicators without modifying the game's legitimate reach.
  5. Mace Swap — Add a configurable mace-switching utility for practice environments. Support switching to a mace from the hotbar and returning to the previously selected item.
  6. Mace Killer — Provide a mace combat training module with configurable timing indicators and practice-target feedback.

Combat Requirements

  • Respect Minecraft 1.21.11 combat mechanics and weapon cooldowns.
  • Support swords, axes, and maces.
  • Use configurable settings and clear visual indicators.
  • Avoid unintended attacks, excessive packet sending, and client instability.
  1. CRYSTAL

Create a dedicated Crystal category for End Crystal PvP practice and performance optimization.

Include:

  • Crystal placement indicators.
  • Crystal interaction timing information.
  • Configurable visual settings.
  • Client performance optimization.
  • Practice-mode damage and cooldown indicators.

Keep the implementation modular and compatible with Minecraft 1.21.11 Fabric.

  1. CONFIG

Create a complete configuration interface containing:

  • Module enable/disable switches.
  • Individual module settings.
  • Sliders for supported numeric values.
  • Dropdown menus.
  • Keybind customization.
  • GUI scale and opacity settings.
  • Color customization.
  • Configuration profiles.
  • Save and load configuration options.
  • Reset-to-default functionality.

All settings must be saved persistently and restored after restarting Minecraft.

  1. MISC

Include the following utilities:

A. Auto XP

Provide configurable experience-bottle throwing assistance for supported practice environments, respecting item availability and normal game mechanics.

B. Spear Launch

Create a spear movement and attribute-swap training utility.

When the player jumps and performs the configured action, provide a visual indicator and optional hotbar-switch assistance for the spear. Preserve normal Minecraft movement and weapon mechanics.

C. Spear Reach Display

If a spear is present in the hotbar, display its legitimate interaction range and configurable distance indicators without granting additional reach.

  1. RENDER

Create a separate Render category with the following modules.

A. Player ESP

  • Display configurable player outlines and name labels.
  • Add distance indicators.
  • Include optional tracer lines.
  • Provide configurable colors and rendering styles.
  • Support visibility settings for different player categories.

B. Glow

  • Provide configurable glow-style outlines for entities that the client is legitimately allowed to render.
  • Allow color selection.
  • Include entity-category filters.
  • Provide outline thickness and opacity settings where supported.

C. Storage ESP

Highlight supported storage blocks with configurable colors and labels.

Include selectable categories such as:

  • Chests.
  • Trapped chests.
  • Ender chests.
  • Barrels.
  • Shulker boxes.
  • Enchanting tables.
  • Other configurable block categories.

Add optional tracer lines, distance labels, and individual category toggles.

D. Structure ESP / Structure Finder

Create a structure-search interface with:

  • A search bar.
  • Selectable structure types.
  • Village and Trial Chamber search options.
  • Search-result lists.
  • Coordinate display for legitimately discovered structures.
  • Optional distance indicators and map markers.
  • A navigation button for supported search results.

Display coordinates in a private client-side interface. Do not fabricate structure discoveries or generate false advancement messages.

  1. GUI DESIGN

Design a modern, smooth, professional Minecraft client GUI.

Requirements:

  • Dark background with subtle accent colors.
  • Separate Combat, Crystal, Config, Misc, and Render tabs.
  • Searchable module lists.
  • Clear toggle switches.
  • Expandable settings panels.
  • Smooth animations.
  • Responsive layout.
  • Keyboard and mouse support.
  • Readable fonts and clean spacing.
  • Configurable GUI keybind.
  • No unnecessary visual clutter.

The GUI must be easy to navigate and usable on different screen resolutions.

  1. PERFORMANCE AND STABILITY

The primary goals are:

  • Reduce unnecessary client-side processing.
  • Improve rendering efficiency.
  • Minimize avoidable memory allocations.
  • Prevent GUI-related lag.
  • Avoid unnecessary background tasks.
  • Handle module errors safely.
  • Avoid memory leaks and resource leaks.
  • Maintain compatibility with Minecraft Java Edition 1.21.11 and Fabric.

Test the mod for crashes, rendering issues, configuration errors, and compatibility problems.

Do not promise zero lag or zero crashes; prioritize measurable performance improvements and reliable error handling.

  1. MOD ICON AND THUMBNAIL

Create a professional Minecraft mod icon featuring the name:

NO LAG CRASH

Design requirements:

  • Bold, readable typography.
  • Dark Minecraft-inspired background.
  • Modern gaming aesthetic.
  • Subtle performance and optimization graphics.
  • High contrast.
  • Clean composition.
  • No unnecessary text.

Add the subtitle:

OPTIMIZE YOUR MINECRAFT GAMEPLAY

Create two visual assets:

  1. A square mod icon suitable for Minecraft's mod list.
  2. A landscape promotional thumbnail showing the complete GUI and its five categories.

The thumbnail should accurately represent the implemented interface and modules.

  1. DEVELOPMENT REQUIREMENTS
  • Minecraft Java Edition 1.21.11.
  • Fabric Loader compatible with the target version.
  • Fabric API compatible with the target version.
  • Java version required by the target Minecraft release.
  • Clean, modular Java source code.
  • Correct Gradle project configuration.
  • No missing dependencies.
  • No placeholder implementations presented as completed features.

Provide the complete source code, project structure, build instructions, and compiled JAR when the environment permits.

Verify that the mod launches successfully and that each implemented module works as documented.

Kodari AI
KodariOct 23 at 10:03 am 17
NoLagCrash
A performance-focused Fabric client mod for Minecraft 1.21.11 featuring a modern GUI with Combat, Crystal, Config, Misc, and Render tabs. Includes training utilities like Auto Mace, Trigger Bot, Shield Disabler, Reach Display, Mace Swap, Mace Killer, Crystal indicators, Auto XP, Spear Launch, and Spear Reach Display. Render modules provide Player ESP, Glow, Storage ESP, and Structure Finder. Comprehensive config system with profiles, keybinds, sliders, and persistent settings. Optimized for minimal lag, stable rendering, and reliable error handling.
  1. Set up the Fabric 1.21.11 client project and persisted module/config foundation.

  2. Build the owo-ui category interface and its controls.

  3. Add safe practice diagnostics and render/structure-discovery tools.

  4. Create the square mod icon and assess the requested landscape thumbnail.

  1. Task 1 is in place: Fabric client scaffold and persistent config foundation.

  2. Task 2 is in place: searchable owo-ui categories, module controls, profiles, and GUI preferences.

  3. I’m now wiring safe, client-side diagnostics and rendering; combat actions/reach changes stay out of scope.

The core controls are wired. I’m tightening the runtime now: only scan loaded chunks, limit outlines to visible entities, and make the hotbar helpers use normal slot selection.

  1. The Fabric client core and persisted module/profile controls are complete.

  2. The runtime now provides read-only combat/crystal indicators, visible-entity and loaded-storage overlays, manual hotbar swap/return keys, and server-returned /locate navigation markers.

  3. I’m adding the mod icon, English keybind names, and an accurate landscape promo graphic.

Created the Fabric 1.21.11 client mod project, including the owo-ui dashboard, persistent profiles, module settings, and client-side runtime.

  • GUI and config: Combat, Crystal, Config, Misc, and Render tabs; searchable module lists, expandable settings, sliders, dropdowns, color and opacity controls, profiles, and a configurable GUI key.

  • Runtime tools: Vanilla reach and cooldown indicators; fall-distance and target feedback; manually triggered mace and spear hotbar switch/return keys; crystal-base and visible-crystal indicators; visible-entity outlines and tracers; storage overlays from already-loaded chunks; and navigation markers for server-returned /locate results.

  • Assets: A 64×64 mod icon at src/main/resources/assets/no_lag_crash/icon.png and a landscape promo graphic at src/main/resources/assets/no_lag_crash/promo_thumbnail.svg.

  • Scope and testing: Combat indicators do not automate attacks, change reach, or throw XP; crystal damage is not fabricated, and structure coordinates are only recorded from server responses. I did not launch the mod in a Minecraft client here, so runtime compatibility is not confirmed. No new survival items or blocks were added.

  • Build and download: On desktop, click Compile in the top bar; on phone, tap ⋮ → Compile Project. Click Compile in the window, then Download on the successful build (or Download no-lag-crash.jar in chat).

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
gradle.properties
manifest.kod
settings.gradle
Code
13 1,359
src/client/java/com/nolagcrash/NoLagCrashClient.java
package com.nolagcrash;

import com.nolagcrash.config.ClientConfig;
import com.nolagcrash.module.ClientModuleRuntime;
import com.nolagcrash.ui.NoLagScreen;
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.client.util.InputUtil;
import net.minecraft.util.Identifier;
import org.lwjgl.glfw.GLFW;

public final class NoLagCrashClient implements ClientModInitializer {
    public static final String MOD_ID = "no_lag_crash";
    public static ClientConfig CONFIG;
    public static KeyBinding OPEN_GUI;
    public static KeyBinding MACE_SWAP_KEY;
    public static KeyBinding SPEAR_SWITCH_KEY;

    @Override
    public void onInitializeClient() {
        MinecraftClient client = MinecraftClient.getInstance();
        CONFIG = ClientConfig.load(client.runDirectory.toPath().resolve("config").resolve("no_lag_crash.properties"));

        KeyBinding.Category category = KeyBinding.Category.create(Identifier.of(MOD_ID, "main"));
        KeyBinding openGui = new KeyBinding("key.no_lag_crash.open_gui", GLFW.GLFW_KEY_RIGHT_SHIFT, category);
        String savedKey = CONFIG.getString("gui.key", "key.keyboard.right.shift");
        if (savedKey.startsWith("key.")) {
            InputUtil.Key parsedKey = InputUtil.fromTranslationKey(savedKey);
            if (parsedKey != InputUtil.UNKNOWN_KEY)
                openGui.setBoundKey(parsedKey);
        }
        OPEN_GUI = KeyBindingHelper.registerKeyBinding(openGui);
        MACE_SWAP_KEY = KeyBindingHelper.registerKeyBinding(new KeyBinding("key.no_lag_crash.mace_swap", GLFW.GLFW_KEY_V, category));
        SPEAR_SWITCH_KEY = KeyBindingHelper.registerKeyBinding(new KeyBinding("key.no_lag_crash.spear_switch", GLFW.GLFW_KEY_C, category));
        KeyBinding.updateKeysByCode();

        ClientTickEvents.END_CLIENT_TICK.register(tickClient -> {
            while (OPEN_GUI.wasPressed()) {
                if (tickClient.currentScreen == null)
                    tickClient.setScreen(new NoLagScreen(CONFIG));
                else if (tickClient.currentScreen instanceof NoLagScreen)
                    tickClient.setScreen(null);
            }
            while (MACE_SWAP_KEY.wasPressed()) {
                if (tickClient.currentScreen == null)
                    ClientModuleRuntime.handleMaceSwap(tickClient);
            }
            while (SPEAR_SWITCH_KEY.wasPressed()) {
                if (tickClient.currentScreen == null)
                    ClientModuleRuntime.handleSpearSwitch(tickClient);
            }
        });

        ClientModuleRuntime.initialize();
    }

    public static void applyGuiKey(String translationKey) {
        if (OPEN_GUI == null || !translationKey.startsWith("key."))
            return;

        InputUtil.Key parsedKey = InputUtil.fromTranslationKey(translationKey);
        if (parsedKey == InputUtil.UNKNOWN_KEY)
            return;

        OPEN_GUI.setBoundKey(parsedKey);
        KeyBinding.updateKeysByCode();
        CONFIG.setString("gui.key", translationKey);
    }
}