Chester Villareal

hello! I would like to create a utility mod for 1.21.11 it will be used in single player only.

The client is made fully in c++, with the menu being imgui and injection handled by minhook. Any modules are implemented via JNI with a consistent logic that will not break.

DO NOT assume this is going to be updated. If i say a specific version like fabric 1.21.11 you do not need to care if it breaks on next update, we are not going to be updating.

Kodari AI
KodariOct 6 at 11:14 am 1
ClientUtilitySuite
A single-player utility mod for Minecraft Fabric 1.21.11, built with a C++ client core using ImGui for the menu and MinHook for injection. Features modular JNI-based implementations with consistent logic, ensuring stable operation without future updates. Provides a cohesive set of player-enhancement tools accessible via an intuitive graphical interface.

Understood: fixed Minecraft 1.21.11, single-player only, with no need to preserve compatibility with future versions.

One architecture detail to settle before I build: a Fabric mod is Java, while a C++/ImGui client injected with MinHook and using JNI is a separate native client. Do you want the injected C++ client, a Fabric mod, or a bridge between them? Also, what should the first utility module do?

Chester Villareal
📎 1 file 1,242 chars
📄
pasted-code-1791285431939.txt
txt 2 lines
▶
Make me a fully working **Minecraft Java PvP-only client for Fabric 1.21.11**, strictly for **singleplayer/local worlds**. Use **Java, Fabric API, Fabric Loader, Mixins, Gradle, JSON, and GLSL when needed**. If Minecraft updates past 1.21.11, **discontinue the project and never update it to newer versions**. Focus ONLY on PvP, not survival. Add organized sections such as **CPvP** (Anchor Macro, Crystal Macro, Safe Anchor, Auto Crystal, Totem tools, Air Anchor, Double Anchor, etc.), **Mace PvP**, **Spear PvP**, **Sword PvP**, **Axe PvP**, **UHC**, **Pot PvP**, **Movement**, **Defense**, **Inventory**, **Utility**, **HUD**, and **Visuals**. Include modern PvP mechanics like cobweb-under-feet, pearl catching, totem management, crystal/anchor techniques, wind-charge/mace mechanics, and other major PvP styles. Research modern Minecraft PvP mechanics and make every module genuinely functional and reliable, not placeholders. Give it a **modern black-and-blue design**, smooth UI animations/transitions, clean ClickGUI, searchable modules, configurable settings, and saved configs. Set **RSHIFT as the default ClickGUI key**. No Forge, NeoForge, Quilt, newer versions, multiplayer support, anti-cheat bypasses, or server exploitation.
Kodari AI
KodariOct 6 at 11:18 am 1
  1. Set up a fixed Minecraft 1.21.11 Fabric client project.

  2. Add a searchable ClickGUI, module categories, and saved settings.

  3. Implement PvP utilities guarded so they only run in single-player.

  4. Add the mod metadata and minimal assets/config defaults.

[Generation stopped]

Chester Villareal
📎 1 file 1,055 chars
📄
pasted-code-1791285575739.txt
txt 1 lines
▶
Make me a fully working Minecraft Java PvP-only client for Fabric 1.21.11, strictly for singleplayer/local worlds. Use Java, Fabric API, Fabric Loader, Mixins, Gradle, JSON, and GLSL when needed. If Minecraft updates past 1.21.11, discontinue the project and never update it to newer versions. Focus ONLY on PvP, not survival. Add organized sections such as CPvP (Anchor Macro, Crystal Macro, Safe Anchor, Auto Crystal, Totem tools, Air Anchor, Double Anchor, etc.), Mace PvP, Spear PvP, Sword PvP, Axe PvP, UHC, Pot PvP, Movement, Defense, Inventory, Utility, HUD, and Visuals. Include modern PvP mechanics like cobweb-under-feet, pearl catching, totem management, crystal/anchor techniques, wind-charge/mace mechanics, and other major PvP styles. Research modern Minecraft PvP mechanics and make every module genuinely functional and reliable, not placeholders. Give it a modern black-and-blue design, smooth UI animations/transitions, clean ClickGUI, searchable modules, configurable settings, and saved configs. Set RSHIFT as the default ClickGUI key.
Kodari AI
KodariOct 6 at 11:21 am 1
  1. Create the Fabric 1.21.11 client project and metadata.

  2. Add single-player-only module logic and saved settings.

  3. Build a black-and-blue searchable ClickGUI, opened with RSHIFT.

  4. Include working PvP-focused features and avoid placeholder modules.

[Generation stopped]

Chester Villareal

V

Kodari AI
KodariOct 6 at 11:21 am 1

The generation was stopped before any content could be produced.

Chester Villareal
📎 1 file 1,015 chars
📄
pasted-code-1791285700773.txt
txt 1 lines
▶
Make me a fully working Minecraft Java PvP-only client for Fabric 1.21.11, Use Java, Fabric API, Fabric Loader, Mixins, Gradle, JSON, and GLSL when needed. If Minecraft updates past 1.21.11, discontinue the project and never update it to newer versions. Focus ONLY on PvP, not survival. Add organized sections such as CPvP (Anchor Macro, Crystal Macro, Safe Anchor, Auto Crystal, Totem tools, Air Anchor, Double Anchor, etc.), Mace PvP, Spear PvP, Sword PvP, Axe PvP, UHC, Pot PvP, Movement, Defense, Inventory, Utility, HUD, and Visuals. Include modern PvP mechanics like cobweb-under-feet, pearl catching, totem management, crystal/anchor techniques, wind-charge/mace mechanics, and other major PvP styles. Research modern Minecraft PvP mechanics and make every module genuinely functional and reliable, not placeholders. Give it a modern black-and-blue design, smooth UI animations/transitions, clean ClickGUI, searchable modules, configurable settings, and saved configs. Set RSHIFT as the default ClickGUI key.
Kodari AI
KodariOct 6 at 11:35 am 4
  1. Set up the fixed-version Fabric 1.21.11 client project.

  2. Add a searchable, configurable ClickGUI with RSHIFT opening and saved settings.

  3. Implement single-player-gated PvP utilities and the categories they belong to.

  1. The fixed 1.21.11 Fabric project and metadata are in place.

  2. The ClickGUI framework now has searchable categories, scrolling, RSHIFT, and persisted module toggles.

  3. I’m adding local-world-only utility actions next; the multiplayer guard will be enforced in the tick handler.

The four enabled modules are now functional and are gated to an integrated single-player world. I’m extending the PvP helpers with crystal/anchor actions, low-health healing, and a local combat HUD.

Created a fixed Minecraft 1.21.11 Fabric client with a black-and-blue searchable ClickGUI, category navigation, a fading backdrop, saved module toggles, and RSHIFT to open it. Feature actions are gated to an integrated single-player world.

Implemented modules: Cobweb Underfoot (G), Crystal Macro ©, Safe Anchor Charger (V; charges targeted anchors and leaves charged ones untouched), Totem Guard, Mace Fall Switch, Auto Sprint, Auto Gapple (at four hearts), and Combat Status HUD.

The requested categories are present, but this is not yet the full feature catalog: Spear, Sword, Axe, Pot, Air Anchor, Double Anchor, and other advanced PvP modules are not implemented.

Chester Villareal

Continue

Kodari AI
KodariOct 6 at 11:38 am 1
  1. Extend the existing PvP module set with concrete, usable features.

  2. Keep all gameplay actions restricted to integrated single-player.

  3. Preserve the current ClickGUI and config conventions.

Added two functional CPvP actions, both restricted to the existing single-player tick guard:

  • Quick Pearl (P): selects and throws a hotbar ender pearl.

  • Quick Obsidian (O): places hotbar obsidian against the targeted block.

Both appear as toggleable modules in the ClickGUI, and their key names are localized.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
Frost
gradle.properties
settings.gradle
Code
13 781
src/client/java/dev/kodari/localpvp/LocalPvpClient.java
package dev.kodari.localpvp;

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.rendering.v1.hud.HudElementRegistry;
import net.minecraft.client.MinecraftClient;
import net.minecraft.client.option.KeyBinding;
import net.minecraft.item.Items;
import net.minecraft.text.Text;
import net.minecraft.util.Identifier;
import org.lwjgl.glfw.GLFW;

public final class LocalPvpClient implements ClientModInitializer {
    private static final ModuleRegistry MODULES = new ModuleRegistry();
    private static final ConfigStore CONFIG = new ConfigStore();
    private static KeyBinding clickGuiKey;
    private static KeyBinding cobwebKey;
    private static KeyBinding crystalKey;
    private static KeyBinding anchorKey;
    private static KeyBinding pearlKey;
    private static KeyBinding obsidianKey;
    private static MinecraftClient activeClient;

    @Override
    public void onInitializeClient() {
        KeyBinding.Category category = KeyBinding.Category.create(Identifier.of("localpvp", "main"));
        clickGuiKey = KeyBindingHelper.registerKeyBinding(new KeyBinding("key.localpvp.clickgui", GLFW.GLFW_KEY_RIGHT_SHIFT, category));
        cobwebKey = KeyBindingHelper.registerKeyBinding(new KeyBinding("key.localpvp.cobweb", GLFW.GLFW_KEY_G, category));
        crystalKey = KeyBindingHelper.registerKeyBinding(new KeyBinding("key.localpvp.crystal", GLFW.GLFW_KEY_C, category));
        anchorKey = KeyBindingHelper.registerKeyBinding(new KeyBinding("key.localpvp.anchor", GLFW.GLFW_KEY_V, category));
        pearlKey = KeyBindingHelper.registerKeyBinding(new KeyBinding("key.localpvp.pearl", GLFW.GLFW_KEY_P, category));
        obsidianKey = KeyBindingHelper.registerKeyBinding(new KeyBinding("key.localpvp.obsidian", GLFW.GLFW_KEY_O, category));
        MODULES.register(new FeatureModule("cobweb-drop", "Cobweb Underfoot", "Press G to place a web beneath your feet.", ModuleCategory.CPVP));
        MODULES.register(new FeatureModule("crystal-macro", "Crystal Macro", "Press C to place a crystal on targeted obsidian or bedrock.", ModuleCategory.CPVP));
        MODULES.register(new FeatureModule("safe-anchor", "Safe Anchor Charger", "Press V to charge a targeted respawn anchor; charged anchors are left untouched.", ModuleCategory.CPVP));
        MODULES.register(new FeatureModule("pearl-macro", "Quick Pearl", "Press P to select and throw an ender pearl from your hotbar.", ModuleCategory.CPVP));
        MODULES.register(new FeatureModule("obsidian-macro", "Quick Obsidian", "Press O to place obsidian against the targeted block.", ModuleCategory.CPVP));
        MODULES.register(new FeatureModule("totem-guard", "Totem Guard", "Moves a hotbar totem into an empty offhand.", ModuleCategory.INVENTORY));
        MODULES.register(new FeatureModule("mace-fall-switch", "Mace Fall Switch", "Selects a hotbar mace while descending and restores your slot on landing.", ModuleCategory.MACE));
        MODULES.register(new FeatureModule("auto-sprint", "Auto Sprint", "Sprints while moving forward unless you are sneaking.", ModuleCategory.MOVEMENT));
        MODULES.register(new FeatureModule("auto-gapple", "Auto Gapple", "Uses a hotbar golden apple when health falls to four hearts.", ModuleCategory.UHC));
        MODULES.register(new FeatureModule("combat-hud", "Combat Status HUD", "Shows health and offhand totem status in local worlds.", ModuleCategory.HUD));
        CONFIG.load(MODULES);

        ClientTickEvents.END_CLIENT_TICK.register(client -> {
            activeClient = client;
            while (clickGuiKey.wasPressed()) {
                client.setScreen(new ClickGuiScreen(MODULES, CONFIG));
            }
            boolean localWorld = client.isInSingleplayer() && client.player != null && client.world != null;
            if (localWorld) {
                PvPFeatures.tick(client, MODULES, cobwebKey, crystalKey, anchorKey, pearlKey, obsidianKey);
            } else {
                cobwebKey.wasPressed();
                crystalKey.wasPressed();
                anchorKey.wasPressed();
                pearlKey.wasPressed();
                obsidianKey.wasPressed();
                PvPFeatures.reset(client);
            }
        });

        HudElementRegistry.addLast(Identifier.of("localpvp", "combat_status"), (context, tickCounter) -> {
            if (activeClient == null || !isLocalWorld(activeClient) || !isEnabled("combat-hud") || activeClient.player == null) {
                return;
            }
            float health = activeClient.player.getHealth();
            String totem = activeClient.player.getOffHandStack().isOf(Items.TOTEM_OF_UNDYING) ? "READY" : "NONE";
            context.drawText(activeClient.textRenderer, Text.literal("HP " + health + "  |  TOTEM " + totem), 10, 10, 0xFF78BFFF, false);
        });
    }

    private static boolean isLocalWorld(MinecraftClient client) {
        return client.isInSingleplayer() && client.player != null && client.world != null;
    }

    private static boolean isEnabled(String id) {
        for (FeatureModule module : MODULES.modules()) {
            if (module.id().equals(id)) {
                return module.enabled();
            }
        }
        return false;
    }
}