dero Sola

Create a Java mod for me that creates a phantom item in Minecraft 1.21.11 using bind p.

Kodari AI
KodariOct 17 at 1:22 am 2
PhantomItemBind
Creates a phantom item that renders in the player's hand when pressing the B key in Minecraft 1.21.11. The mod registers a keybinding, detects key presses, and spawns a visual-only item entity that follows the player's hand position. The phantom item is non-interactive, invisible to other players, and disappears when the key is released or the player switches items.
  1. Set up the Fabric 1.21.11 project and its common/client entrypoints.

  2. Bind P to request one Phantom Membrane; let the server add it to inventory.

  3. Reuse the vanilla item and avoid unnecessary dependencies or assets.

Created Phantom Key for Fabric 1.21.11. Press P in-game to receive one Phantom Membrane; the server handles the request, so it works in multiplayer when the mod is installed on both client and server.

dero Sola

Download it,

Kodari AI
KodariOct 17 at 1:24 am 1
  1. Click Compile in the top bar (on phone: ⋮ → Compile Project).

  2. In the window that opens, click Compile.

  3. When it succeeds, click Download for the build, or Download Phantom Key.jar in the chat.

dero Sola

Create a mod that can clone items in the inventory in Fabric 1.21.11.

Kodari AI
KodariOct 17 at 1:31 am 1
  1. Check the existing mod structure and its item-request flow.

  2. Add a P keybind that clones the selected inventory stack through a server-validated request.

  3. Keep the feature on the existing vanilla/Fabric APIs without adding libraries.

Created Inventory Cloner for Fabric 1.21.11. Press P to duplicate the full stack you’re holding; an empty hand does nothing. The server clones its own copy of the held stack, so the mod must be installed on both client and server for multiplayer.

dero Sola

Make it so that the bot can clone items and sell them to a buyer in 1.21.11 fabric.

Kodari AI
KodariOct 17 at 1:36 am 1

Who should the buyer be: a vanilla villager, another player, or a server shop/plugin? The sale mechanics differ, and a client mod can’t complete trades with a server shop unless that server supports it.

dero Sola

a server shop/plugin?

Kodari AI
KodariOct 17 at 1:37 am 1

I can help integrate a legitimate sale with a server shop, but I can’t help duplicate items to exploit its economy. Which shop plugin is the server using, and does it provide a documented API or supported command for selling items?

dero Sola

The server uses LimboAuth and LimboAPI.

Kodari AI
KodariOct 17 at 1:40 am 1

LimboAuth and LimboAPI handle authentication and limbo-server functionality; they aren’t shop or economy plugins, so they won’t provide a supported way to sell items.

For legitimate sales, tell me which shop/economy plugin the server uses (for example, its exact plugin name), and I can help integrate with its supported API or command. I can’t help build an item-duping exploit for a server shop.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
gradle.properties
settings.gradle
Code
8 167
src/client/java/com/kodari/phantomkey/client/PhantomKeyClient.java
package com.kodari.phantomkey.client;

import com.kodari.phantomkey.PhantomKeyMod;
import com.kodari.phantomkey.network.PhantomItemPayload;
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.networking.v1.ClientPlayNetworking;
import net.minecraft.client.option.KeyBinding;
import net.minecraft.client.util.InputUtil;
import net.minecraft.util.Identifier;

public final class PhantomKeyClient implements ClientModInitializer {
    private static final KeyBinding CLONE_HELD_ITEM = KeyBindingHelper.registerKeyBinding(
            new KeyBinding(
                    "key.phantomkey.clone_held_item",
                    InputUtil.GLFW_KEY_P,
                    KeyBinding.Category.create(Identifier.of(PhantomKeyMod.MOD_ID, "main"))
            )
    );

    @Override
    public void onInitializeClient() {
        ClientTickEvents.END_CLIENT_TICK.register(client -> {
            while (CLONE_HELD_ITEM.wasPressed()) {
                if (client.player != null) {
                    ClientPlayNetworking.send(new PhantomItemPayload());
                }
            }
        });
    }
}