Anymous

make me a auto builder client for 1.21.11 java and with auto mine and a gui menu like this and make it so i can build anything

[Viewing 1 image]

1 image attached
Kodari AI
KodariOct 15 at 8:40 pm 3
AutoBuildClient
Creates a Fabric mod for Minecraft 1.21.11 that provides an automated building and mining system. Features a graphical user interface (GUI) menu allowing players to select and construct any structure from a library of blueprints or custom designs. Includes an auto-mining mode that intelligently excavates designated areas while preserving the build zone. The mod integrates with the game's block placement and breaking systems, supports configurable build speeds, and offers preview functionality to visualize structures before construction. Designed for seamless single-player and multiplayer use with a focus on user-friendly controls and efficient resource management.
  1. Set up the Fabric 1.21.11 client mod and owo-ui dashboard.

  2. Add toggleable auto-mine and auto-place actions, without anti-cheat evasion; this first version will act on the block you’re targeting rather than import arbitrary schematics.

Created BuilderKit for Fabric 1.21.11 with a purple-themed owo-ui dashboard, opened with Right Shift. It includes Auto Mine for the targeted block and Auto Builder for placing the held block on a targeted face, using normal game interactions.

Auto Builder does not yet import schematics or construct arbitrary blueprints, and the mod does not include anti-cheat evasion.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
gradle.properties
manifest.kod
settings.gradle
Code
8 275
src/client/java/com/kodari/builderkit/client/BuilderKitClient.java
package com.kodari.builderkit.client;

import com.kodari.builderkit.client.screen.ControlPanelScreen;
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.network.ClientPlayerInteractionManager;
import net.minecraft.client.option.KeyBinding;
import net.minecraft.item.BlockItem;
import net.minecraft.text.Text;
import net.minecraft.util.Hand;
import net.minecraft.util.Identifier;
import net.minecraft.util.hit.BlockHitResult;
import org.lwjgl.glfw.GLFW;

public class BuilderKitClient implements ClientModInitializer {
    private static final String MOD_ID = "builderkit";
    private static KeyBinding openMenuKey;
    private static boolean miningStarted;
    private static int placeCooldown;

    public static boolean autoMineEnabled;
    public static boolean autoBuilderEnabled;

    @Override
    public void onInitializeClient() {
        KeyBinding.Category category = KeyBinding.Category.create(Identifier.of(MOD_ID, "main"));
        openMenuKey = KeyBindingHelper.registerKeyBinding(
                new KeyBinding("key.builderkit.open_menu", GLFW.GLFW_KEY_RIGHT_SHIFT, category)
        );

        ClientTickEvents.END_CLIENT_TICK.register(client -> {
            while (openMenuKey.wasPressed()) {
                if (client.currentScreen == null) {
                    client.setScreen(new ControlPanelScreen());
                }
            }

            tickAutomation(client);
        });
    }

    private static void tickAutomation(MinecraftClient client) {
        if (placeCooldown > 0) {
            placeCooldown--;
        }

        if (client.player == null || client.world == null || client.interactionManager == null || client.currentScreen != null) {
            stopMining(client.interactionManager);
            return;
        }

        if (autoMineEnabled && client.crosshairTarget instanceof BlockHitResult hit) {
            client.interactionManager.updateBlockBreakingProgress(hit.getBlockPos(), hit.getSide());
            miningStarted = true;
        } else {
            stopMining(client.interactionManager);
        }

        if (autoBuilderEnabled
                && placeCooldown == 0
                && client.crosshairTarget instanceof BlockHitResult hit
                && client.player.getMainHandStack().getItem() instanceof BlockItem) {
            client.interactionManager.interactBlock(client.player, Hand.MAIN_HAND, hit);
            placeCooldown = 4;
        }
    }

    private static void stopMining(ClientPlayerInteractionManager interactionManager) {
        if (miningStarted && interactionManager != null) {
            interactionManager.cancelBlockBreaking();
            miningStarted = false;
        }
    }
}