Théo

Create a Minecraft Java autoclicker mod inspired by Eclipse Autoclicker.

Requirements:

  • Minecraft Java 1.20.1
  • Fabric Loader and Fabric API
  • Java 17
  • Fully functional autoclicker with Start/Stop controls.
  • Adjustable CPS from 0.1 to 20.0, in increments of 0.1.
  • Min CPS, Max CPS, and CPS Range settings.
  • Natural clicking intervals with configurable randomization.
  • Clean, modern GUI inspired by Eclipse Autoclicker's design.
  • All GUI controls must work correctly.
  • Save settings between game sessions.
  • Multilingual support, including English and Brazilian Portuguese.
  • Toggle keybind to open and close the menu.
  • Lightweight implementation with minimal CPU and memory usage.
  • Properly handle Minecraft focus, pausing, and stopping clicks when disabled.
  • Compatible with Minecraft 1.20.1 Fabric only.

Study the existing Eclipse Autoclicker design if reference material is available. Recreate its general functionality and visual style without copying proprietary code or assets.

Build and delivery:

Generate the complete source code, configure the correct Gradle and Fabric Loom versions, compile the project, fix all build errors, and verify that the resulting JAR works with Minecraft 1.20.1 Fabric. Provide downloadable links for both the compiled JAR and the complete source project ZIP.

Do not return a mockup, incomplete code, or a menu with nonfunctional controls. Verify the actual implementation before claiming it works.

Kodari AI
KodariOct 23 at 10:46 pm 2
EclipseAutoclickerFabric
Fabric mod for Minecraft 1.20.1 providing a fully functional autoclicker with an Eclipse Autoclicker-inspired GUI. Features adjustable CPS from 0.1 to 20.0 in 0.1 increments, min/max CPS range settings, natural randomized click intervals, Start/Stop controls, toggle keybind, and multilingual support (English and Brazilian Portuguese). Settings persist between sessions. Lightweight implementation with minimal CPU usage, properly pausing clicks when Minecraft loses focus or the game is paused.
  1. Create the 1.20.1 Fabric client project and Gradle configuration.

  2. Implement randomized CPS clicking, start/stop, focus/pause safety, and persisted settings.

  3. Add a functional bilingual settings screen and toggle keybind, plus client metadata and language files.

Created the complete Fabric client mod source for Minecraft 1.20.1, with randomized CPS controls, Start/Stop, settings saved to config/naturalclicker.properties, a Right Shift menu keybind, and English/Brazilian Portuguese UI. Clicking pauses while the game is unfocused, paused, or another screen is open.

I can’t provide direct JAR or source-ZIP links from this chat, and I can’t claim those artifacts were verified here. To build and download the JAR in Kodari, click Compile in the desktop top bar (or ⋮ → Compile Project on phone), click Compile, then Download after it succeeds. The complete source is in the project workspace; no ZIP link was generated.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
gradle.properties
settings.gradle
Code
9 403
src/main/java/com/kodari/naturalclicker/NaturalClickerClient.java
package com.kodari.naturalclicker;

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.network.ClientPlayerInteractionManager;
import net.minecraft.entity.Entity;
import net.minecraft.util.hit.BlockHitResult;
import net.minecraft.util.hit.EntityHitResult;
import net.minecraft.util.hit.HitResult;

import java.util.concurrent.ThreadLocalRandom;

public final class NaturalClickerClient implements ClientModInitializer {
    private static final ClickerSettings SETTINGS = ClickerSettings.load();
    private static KeyBinding menuKey;
    private static boolean enabled;
    private static long nextClickNanos;

    @Override
    public void onInitializeClient() {
        menuKey = KeyBindingHelper.registerKeyBinding(new KeyBinding(
                "key.naturalclicker.open_menu",
                344,
                "category.naturalclicker"
        ));

        ClientTickEvents.END_CLIENT_TICK.register(client -> {
            while (menuKey.wasPressed()) {
                client.setScreen(client.currentScreen instanceof ClickerScreen ? null : new ClickerScreen());
            }
            tickClicker(client);
        });
    }

    static ClickerSettings settings() {
        return SETTINGS;
    }

    static boolean isEnabled() {
        return enabled;
    }

    static void toggle() {
        enabled = !enabled;
        nextClickNanos = 0L;
    }

    private static void tickClicker(MinecraftClient client) {
        if (!enabled) {
            return;
        }

        if (client.player == null || client.world == null || client.interactionManager == null
                || client.currentScreen != null || !client.isWindowFocused() || client.isPaused()) {
            nextClickNanos = 0L;
            return;
        }

        long now = System.nanoTime();
        if (now < nextClickNanos) {
            return;
        }

        HitResult target = client.crosshairTarget;
        ClientPlayerInteractionManager interactionManager = client.interactionManager;
        if (target instanceof EntityHitResult entityHit) {
            Entity entity = entityHit.getEntity();
            interactionManager.attackEntity(client.player, entity);
        } else if (target instanceof BlockHitResult blockHit) {
            interactionManager.attackBlock(blockHit.getBlockPos(), blockHit.getSide());
        }

        double minimum = SETTINGS.effectiveMinCps();
        double maximum = SETTINGS.effectiveMaxCps();
        double selectedCps = minimum == maximum
                ? minimum
                : ThreadLocalRandom.current().nextDouble(minimum, maximum);
        nextClickNanos = now + (long) (1_000_000_000.0 / selectedCps);
    }
}