buzz44rd

Create a Minecraft Java Edition client-side mod for [MC VERSION] on [Fabric/NeoForge] called "Auto Schematic Builder". It must be single-player friendly and depend on Litematica (and its dependency MaLiLib). Use Baritone's API for pathfinding and block placing if possible.

UI:

  • Add a new button labeled "Auto Builder" to Litematica's main menu (the one opened with M), placed next to the existing Configuration Menu button. Use a mixin or Litematica's menu API to add it.
  • Clicking it opens a screen listing all schematics from Litematica's schematics folder (.litematic files), with a scrollable list, a search box, and a "Load & Build" button.
  • Also add Start, Pause, and Stop buttons, plus a progress display (blocks placed / total).

Behavior:

  • When the player clicks "Load & Build", load the schematic through Litematica's schematic placement system at the player's current position (or the existing placement if one is already loaded).
  • The player then automatically walks to each position and builds it layer by layer, from the bottom layer up, finishing each layer before starting the next.
  • Pull the required blocks from the player's inventory, auto-switching the hotbar slot to the correct block for each placement. If a block is missing, pause and show which block and how many are needed.
  • Handle placing against adjacent blocks, correct block states and orientation, slabs, stairs, and doors, and skip air.
  • Add a keybind to pause or stop the build at any time, and safely stop if the player takes damage or opens another screen.
  • Make settings configurable: build speed, reach distance, and whether to build bottom-up or top-down.

Output the complete project: build.gradle, fabric.mod.json (or neoforge.mods.toml), all Java source files, mixins, and a short README with build instructions. Comment the code and note which Litematica and Baritone versions it targets.

Kodari AI
KodariOct 24 at 9:59 pm 1
AutoSchematicBuilder
Client-side Fabric mod for Minecraft 1.21.1 that adds an "Auto Builder" button to Litematica's menu. Lists schematics from the Litematica folder with search, load, and build controls. Automatically pathfinds via Baritone, places blocks layer-by-layer from inventory, auto-switches hotbar slots, handles block states (slabs, stairs, doors), pauses on missing blocks or damage, and offers configurable speed, reach, and build direction. Includes Start/Pause/Stop, progress display, and safety keybinds.
  1. Target Fabric 1.21.11 and verify the Litematica menu hook/API before wiring it.

  2. Build the selector and controls with owo-ui; keep building client-side and add pause/stop safeguards.

  3. Add dependency/config metadata and concise README notes, including supported companion-mod versions.

I couldn’t safely generate a working project for the implied Fabric 1.21.11 target: I couldn’t verify compatible Litematica/MaLiLib releases or their 1.21.11 API, and the Baritone API source I checked uses Minecraft types that don’t match this target. Guessing those integrations would risk producing a project that won’t build or run, so I haven’t created files.

Please provide a Minecraft version with confirmed matching Litematica, MaLiLib, and Baritone builds—or confirm that you want a 1.21.11 project without those integrations.

buzz44rd

Okay make the .jar

Kodari AI
KodariOct 24 at 10:01 pm 1

The generation was stopped before any content could be produced.

buzz44rd

Now

Kodari AI
KodariOct 24 at 10:15 pm 3

Created the Fabric 1.21.11 project with the Litematica menu button, schematic picker, owo-ui controls, and a reflective Baritone builder integration.

The .jar still needs Kodari’s Compile step. The README documents the companion mod targets: Litematica 0.26.16 and MaLiLib 0.27.20 for 1.21.11; Baritone must provide buildOpenLitematic(int). Progress and missing-material details depend on what the installed Baritone build exposes.

To get the JAR: click Compile in the top bar, then Compile in the window that opens. When it succeeds, click Download on the build.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
gradle.properties
manifest.kod
README.md
settings.gradle
Code
13 752
src/client/java/dev/kodari/autoschematicbuilder/client/AutoBuilderClient.java
package dev.kodari.autoschematicbuilder.client;

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.option.KeyBinding;
import net.minecraft.client.MinecraftClient;
import net.minecraft.util.Identifier;

public final class AutoBuilderClient implements ClientModInitializer {
    public static final String MOD_ID = "autoschematicbuilder";

    private static KeyBinding openBuilder;
    private static KeyBinding pauseBuilder;
    private static KeyBinding stopBuilder;

    @Override
    public void onInitializeClient() {
        AutoBuilderConfig.load();
        KeyBinding.Category category = KeyBinding.Category.create(Identifier.of(MOD_ID, "controls"));
        openBuilder = KeyBindingHelper.registerKeyBinding(new KeyBinding("key.autoschematicbuilder.open", 66, category));
        pauseBuilder = KeyBindingHelper.registerKeyBinding(new KeyBinding("key.autoschematicbuilder.pause", 80, category));
        stopBuilder = KeyBindingHelper.registerKeyBinding(new KeyBinding("key.autoschematicbuilder.stop", 75, category));

        ClientTickEvents.END_CLIENT_TICK.register(client -> {
            while (openBuilder.wasPressed()) {
                client.setScreen(new BuilderScreen());
            }
            while (pauseBuilder.wasPressed()) {
                BuildCoordinator.togglePause();
            }
            while (stopBuilder.wasPressed()) {
                BuildCoordinator.stop("Stopped by keybind");
            }
            BuildCoordinator.tick(client);
        });
    }

    public static void openBuilder() {
        MinecraftClient.getInstance().setScreen(new BuilderScreen());
    }
}