L

Create a Minecraft mod called “Drop Duplicator”. Press Right Shift to open a Minecraft-style settings menu. Let me change the menu keybind, set the duplication multiplier (2x, 4x, 8x, 16x, 32x, 64x), and configure Start/Stop keybinds. Add Start and Stop buttons in the menu too. When I drop an item, duplicate it according to the selected multiplier. Prevent infinite duplication loops and save settings. Make the menu look like vanilla Minecraft and make everything functional. Fabric 26.3

Kodari AI
KodariOct 12 at 12:23 pm 7
DropDuplicator
A Fabric mod that duplicates dropped items by a configurable multiplier. Press Right Shift to open a vanilla-style settings menu where players can change the menu keybind, adjust the duplication multiplier (2x-64x), and configure Start/Stop keybinds. The menu includes functional Start and Stop buttons. When active, dropping an item creates copies based on the selected multiplier. Includes infinite duplication loop prevention and persistent settings saved to disk. All keybinds are customizable through the in-game menu interface.
  1. Create the Fabric 26.3 scaffold and reliable drop-duplication core.

  2. Add saved settings plus configurable menu, Start, and Stop keybinds.

  3. Build the vanilla-style settings screen with owo-ui.

Created Drop Duplicator for Fabric 26.3.

  • Right Shift opens the vanilla-style settings menu. Choose 2×, 4×, 8×, 16×, 32×, or 64×; settings are saved.

  • F8 starts duplication and F9 stops it by default. The menu also has Start and Stop buttons, and lets you reassign the menu and action keys.

  • When enabled, dropped items are duplicated server-side for each player. Large results are split into valid stacks, and the copies are spawned directly so they don’t trigger another duplication.

L

The compilation failed with this error:

code
[FABRIC] Added 28 baked jar-in-jar dependencies
[FABRIC] Compiling 7 Java files for MC 26.3 (release 25)
[ERROR] Compilation failed

/workspace/src/main/java/client/java/com/kodari/dropduplicator/client/DropDuplicatorConfig.java:29: error: cannot find symbol
            .controller(option -> EnumDropdownControllerBuilder.create(option).enumClass(Multiplier.class))
                                                                              ^
  symbol:   method enumClass(Class<Multiplier>)
  location: interface EnumDropdownControllerBuilder<Multiplier>
/workspace/src/main/java/client/java/com/kodari/dropduplicator/client/DropDuplicatorConfig.java:78: error: cannot find symbol
            .controller(option -> EnumDropdownControllerBuilder.create(option).enumClass(KeyChoice.class))
                                                                              ^
  symbol:   method enumClass(Class<KeyChoice>)
  location: interface EnumDropdownControllerBuilder<KeyChoice>
2 errors

Please fix this error by creating a new artifact with the corrected code.

Kodari AI
KodariOct 12 at 12:28 pm 1

Fixed both YACL enum controllers to use EnumControllerBuilder, which provides enumClass(...). The corrected code is ready for a new compile.

L

Will it work on servers like donut SMP

Kodari AI
KodariOct 13 at 10:46 am 1

Not by installing it on your client alone. Drop Duplicator performs duplication on the server, so the server needs to have the mod installed and enabled too. Donut SMP is a public server, so assume it won’t work there unless its staff explicitly supports the mod—and check their rules before trying item duplication.

L

and can u make it that it will work on donut SMP and other servers

Kodari AI
KodariOct 13 at 10:46 am 1

I can’t make it bypass Donut SMP’s server-side rules or anti-cheat to duplicate items there. The server controls item drops, so a client-only change can’t legitimately enable duplication on servers that don’t support it.

I can help make Drop Duplicator work on a server you own or have permission to modify, where the server installs and enables the mod.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
gradle.properties
manifest.kod
settings.gradle
Code
14 566
src/client/java/com/kodari/dropduplicator/client/DropDuplicatorClient.java
package com.kodari.dropduplicator.client;

import com.kodari.dropduplicator.DropDuplicator;
import com.kodari.dropduplicator.SyncSettingsPayload;
import com.mojang.blaze3d.platform.InputConstants;
import net.fabricmc.api.ClientModInitializer;
import net.fabricmc.fabric.api.client.event.lifecycle.v1.ClientTickEvents;
import net.fabricmc.fabric.api.client.keymapping.v1.KeyMappingHelper;
import net.fabricmc.fabric.api.client.networking.v1.ClientPlayNetworking;
import net.minecraft.client.KeyMapping;
import net.minecraft.client.Minecraft;
import net.minecraft.resources.Identifier;

public final class DropDuplicatorClient implements ClientModInitializer {
    private static final KeyMapping.Category CATEGORY = KeyMapping.Category.register(
        Identifier.fromNamespaceAndPath(DropDuplicator.MOD_ID, "controls")
    );
    public static KeyMapping OPEN_MENU_KEY;
    public static KeyMapping START_KEY;
    public static KeyMapping STOP_KEY;
    private static boolean syncedForCurrentPlayer;

    @Override
    public void onInitializeClient() {
        DropDuplicatorSettings.load();
        OPEN_MENU_KEY = KeyMappingHelper.registerKeyMapping(new KeyMapping(
            "key.dropduplicator.open_menu", InputConstants.Type.KEYBOARD, InputConstants.KEY_RSHIFT, CATEGORY
        ));
        START_KEY = KeyMappingHelper.registerKeyMapping(new KeyMapping(
            "key.dropduplicator.start", InputConstants.Type.KEYBOARD, InputConstants.KEY_F8, CATEGORY
        ));
        STOP_KEY = KeyMappingHelper.registerKeyMapping(new KeyMapping(
            "key.dropduplicator.stop", InputConstants.Type.KEYBOARD, InputConstants.KEY_F9, CATEGORY
        ));

        ClientTickEvents.END_CLIENT_TICK.register(client -> {
            if (OPEN_MENU_KEY.consumeClick()) {
                client.gui.setScreen(DropDuplicatorConfig.createScreen(null));
            }
            if (client.player == null) {
                syncedForCurrentPlayer = false;
                return;
            }

            if (!syncedForCurrentPlayer) {
                syncSettings();
                syncedForCurrentPlayer = true;
            }
            if (START_KEY.consumeClick()) {
                setEnabled(true);
            }
            if (STOP_KEY.consumeClick()) {
                setEnabled(false);
            }
        });
    }

    public static void setEnabled(boolean enabled) {
        DropDuplicatorSettings.setEnabled(enabled);
        syncSettings();
    }

    public static void setMultiplier(int multiplier) {
        DropDuplicatorSettings.setMultiplier(multiplier);
        syncSettings();
    }

    public static void setKeyBinding(KeyMapping mapping, int keyValue) {
        InputConstants.Key oldKey = KeyMappingHelper.getBoundKeyOf(mapping);
        InputConstants.Key newKey = InputConstants.Type.KEYBOARD.getOrCreate(keyValue);
        for (KeyMapping other : new KeyMapping[]{OPEN_MENU_KEY, START_KEY, STOP_KEY}) {
            if (other != mapping && KeyMappingHelper.getBoundKeyOf(other).getValue() == keyValue) {
                other.setKey(oldKey);
                break;
            }
        }
        mapping.setKey(newKey);
        Minecraft.getInstance().options.save();
    }

    public static void syncSettings() {
        if (Minecraft.getInstance().player != null) {
            ClientPlayNetworking.send(new SyncSettingsPayload(
                DropDuplicatorSettings.isEnabled(),
                DropDuplicatorSettings.getMultiplier()
            ));
        }
    }
}