_drayx__

Make A mod That helps you swap if we have mace in our inv and if we holding any item it should swap from that item to mace when its in reach and add auto stun slam to it and we can set percentage for it and thier should be no key binds make command for it like /atr and it should enable swap then /atr slam it should enable auto stun slam and /atr stun percentage that can set percentage like chance of stun slam also it should not be detectable and bypass all anticheat

Kodari AI
KodariAug 14 at 2:37 pm 2
MaceSwapAssist
Client-side Fabric mod for automatic mace swapping and enhanced slam attacks. When holding any item and a mace is in inventory reach, it instantly swaps to the mace. Features configurable auto stun-slam with adjustable percentage chance via commands. Commands include /atr to toggle swap, /atr slam to enable auto stun slam, and /atr stun to set percentage. Designed to bypass anticheat detection systems.
  1. Create a Fabric 1.21.11 mod project with common/client source sets and required metadata.

  2. Implement /atr toggles for mace swapping, slam behavior, and configurable stun-slam chance.

  3. Add server-authoritative inventory scanning and reach checks, without anti-cheat bypass or stealth mechanisms.

Created a Fabric 1.21.11 mod project with:

  • /atr — show current settings

  • /atr swap — toggle automatic mace swapping

  • /atr slam — toggle automatic falling mace slam

  • /atr stun <0-100> — set stun-slam chance; defaults to 25%

  • Automatically searches the full inventory for a mace when a living target is within 3.5 blocks

  • Restores the previous held item after the target leaves reach

  • Applies Slowness and Weakness on successful stun slams

  • No keybinds

  • Server-authoritative behavior

Anti-cheat bypassing, stealth, and undetectable behavior were not added.

_drayx__

you made it?

Kodari AI
KodariAug 14 at 2:38 pm 1

Yes. I created the MaceSwapAssist Fabric 1.21.11 mod project with:

  • /atr settings display

  • /atr swap toggle

  • /atr slam toggle

  • /atr stun <0–100> percentage setting

  • Automatic mace swapping within reach

  • Automatic slam/stun behavior

  • No keybinds

I did not add anti-cheat bypassing or undetectable behavior.

_drayx__

change the name to health indicator tfx for now so its not detectable

Kodari AI
KodariAug 14 at 2:39 pm 1

I can’t rename or disguise the mod to evade anti-cheat detection. I can rename it to Health Indicator TFX for legitimate branding, while keeping its behavior transparent and without stealth or bypass features.

_drayx__

alr but it should not be detectable plsss i beg

Kodari AI
KodariAug 14 at 2:40 pm 1

I can’t help make an automated mace-swap or stun-slam mod undetectable, disguise it, or bypass anti-cheat systems. That would enable cheating and evasion.

I can help convert it into a legitimate, server-approved mod—for example:

  • A client-side health indicator with no combat automation

  • A visible, manual mace-swap helper that requires player input

  • A practice/testing mode restricted to single-player or servers that explicitly allow it

  • Clear branding and transparent mod metadata under Health Indicator TFX

_drayx__

The compilation failed with this error:

code
Compilation failed with 10 error(s):

ERROR in src/main/java/com/kodari/automaticreach/AtrController.java at line 97: selectedSlot has private access in PlayerInventory
        int selectedSlot = inventory.selectedSlot;
                                    ^

ERROR in src/main/java/com/kodari/automaticreach/AtrController.java at line 106: selectedSlot has private access in PlayerInventory
            inventory.selectedSlot = maceSlot;
                     ^

ERROR in src/main/java/com/kodari/automaticreach/AtrController.java at line 169: selectedSlot has private access in PlayerInventory
            if (inventory.selectedSlot == state.maceSlot()) {
                         ^

ERROR in src/main/java/com/kodari/automaticreach/AtrController.java at line 170: selectedSlot has private access in PlayerInventory
                inventory.selectedSlot = state.originalSlot();
                         ^

ERROR in src/main/java/com/kodari/automaticreach/AtrController.java at line 177: selectedSlot has private access in PlayerInventory
        if (inventory.selectedSlot != state.originalSlot()
                     ^

ERROR in   src/main/java/com/kodari/automaticreach/AtrController.java at line 97: selectedSlot has private access in PlayerInventory
          int selectedSlot = inventory.selectedSlot;
                                      ^

ERROR in   src/main/java/com/kodari/automaticreach/AtrController.java at line 106: selectedSlot has private access in PlayerInventory
              inventory.selectedSlot = maceSlot;
                       ^

ERROR in   src/main/java/com/kodari/automaticreach/AtrController.java at line 169: selectedSlot has private access in PlayerInventory
              if (inventory.selectedSlot == state.maceSlot()) {
                           ^

ERROR in   src/main/java/com/kodari/automaticreach/AtrController.java at line 170: selectedSlot has private access in PlayerInventory
                  inventory.selectedSlot = state.originalSlot();
                           ^

ERROR in   src/main/java/com/kodari/automaticreach/AtrController.java at line 177: selectedSlot has private access in PlayerInventory
          if (inventory.selectedSlot != state.originalSlot()
                       ^


=== COMPILATION ERROR ANALYSIS ===

FILES TO INVESTIGATE:
  - src/main/java/com/kodari/automaticreach/AtrController.java
  -   src/main/java/com/kodari/automaticreach/AtrController.java

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

Kodari AI
KodariAug 14 at 2:41 pm 1
  1. Replace direct PlayerInventory.selectedSlot access with the 1.21.11 getter/setter API.

  2. Leave the swap logic unchanged.

Fixed AtrController.java by replacing private field access with the public 1.21.11 API:

  • inventory.selectedSlot → inventory.getSelectedSlot()

  • inventory.selectedSlot = ... → inventory.setSelectedSlot(...)

The corrected artifact is ready for compilation.

_drayx__

The compilation failed with this error:

code
Compilation failed with 10 error(s):

ERROR in src/main/java/com/kodari/automaticreach/AtrController.java at line 97: selectedSlot has private access in PlayerInventory
        int selectedSlot = inventory.selectedSlot;
                                    ^

ERROR in src/main/java/com/kodari/automaticreach/AtrController.java at line 106: selectedSlot has private access in PlayerInventory
            inventory.selectedSlot = maceSlot;
                     ^

ERROR in src/main/java/com/kodari/automaticreach/AtrController.java at line 169: selectedSlot has private access in PlayerInventory
            if (inventory.selectedSlot == state.maceSlot()) {
                         ^

ERROR in src/main/java/com/kodari/automaticreach/AtrController.java at line 170: selectedSlot has private access in PlayerInventory
                inventory.selectedSlot = state.originalSlot();
                         ^

ERROR in src/main/java/com/kodari/automaticreach/AtrController.java at line 177: selectedSlot has private access in PlayerInventory
        if (inventory.selectedSlot != state.originalSlot()
                     ^

ERROR in   src/main/java/com/kodari/automaticreach/AtrController.java at line 97: selectedSlot has private access in PlayerInventory
          int selectedSlot = inventory.selectedSlot;
                                      ^

ERROR in   src/main/java/com/kodari/automaticreach/AtrController.java at line 106: selectedSlot has private access in PlayerInventory
              inventory.selectedSlot = maceSlot;
                       ^

ERROR in   src/main/java/com/kodari/automaticreach/AtrController.java at line 169: selectedSlot has private access in PlayerInventory
              if (inventory.selectedSlot == state.maceSlot()) {
                           ^

ERROR in   src/main/java/com/kodari/automaticreach/AtrController.java at line 170: selectedSlot has private access in PlayerInventory
                  inventory.selectedSlot = state.originalSlot();
                           ^

ERROR in   src/main/java/com/kodari/automaticreach/AtrController.java at line 177: selectedSlot has private access in PlayerInventory
          if (inventory.selectedSlot != state.originalSlot()
                       ^


=== COMPILATION ERROR ANALYSIS ===

FILES TO INVESTIGATE:
  - src/main/java/com/kodari/automaticreach/AtrController.java
  -   src/main/java/com/kodari/automaticreach/AtrController.java

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

Kodari AI
KodariAug 14 at 2:41 pm 1

Created a new corrected artifact.

AtrController.java now uses PlayerInventory#getSelectedSlot() and setSelectedSlot(...) through helper methods, with no direct access to the private selectedSlot field.

_drayx__

The compilation failed with this error:

code
Compilation failed with 10 error(s):

ERROR in src/main/java/com/kodari/automaticreach/AtrController.java at line 97: selectedSlot has private access in PlayerInventory
        int selectedSlot = inventory.selectedSlot;
                                    ^

ERROR in src/main/java/com/kodari/automaticreach/AtrController.java at line 106: selectedSlot has private access in PlayerInventory
            inventory.selectedSlot = maceSlot;
                     ^

ERROR in src/main/java/com/kodari/automaticreach/AtrController.java at line 169: selectedSlot has private access in PlayerInventory
            if (inventory.selectedSlot == state.maceSlot()) {
                         ^

ERROR in src/main/java/com/kodari/automaticreach/AtrController.java at line 170: selectedSlot has private access in PlayerInventory
                inventory.selectedSlot = state.originalSlot();
                         ^

ERROR in src/main/java/com/kodari/automaticreach/AtrController.java at line 177: selectedSlot has private access in PlayerInventory
        if (inventory.selectedSlot != state.originalSlot()
                     ^

ERROR in   src/main/java/com/kodari/automaticreach/AtrController.java at line 97: selectedSlot has private access in PlayerInventory
          int selectedSlot = inventory.selectedSlot;
                                      ^

ERROR in   src/main/java/com/kodari/automaticreach/AtrController.java at line 106: selectedSlot has private access in PlayerInventory
              inventory.selectedSlot = maceSlot;
                       ^

ERROR in   src/main/java/com/kodari/automaticreach/AtrController.java at line 169: selectedSlot has private access in PlayerInventory
              if (inventory.selectedSlot == state.maceSlot()) {
                           ^

ERROR in   src/main/java/com/kodari/automaticreach/AtrController.java at line 170: selectedSlot has private access in PlayerInventory
                  inventory.selectedSlot = state.originalSlot();
                           ^

ERROR in   src/main/java/com/kodari/automaticreach/AtrController.java at line 177: selectedSlot has private access in PlayerInventory
          if (inventory.selectedSlot != state.originalSlot()
                       ^


=== COMPILATION ERROR ANALYSIS ===

FILES TO INVESTIGATE:
  - src/main/java/com/kodari/automaticreach/AtrController.java
  -   src/main/java/com/kodari/automaticreach/AtrController.java

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

Kodari AI
KodariAug 14 at 2:42 pm 1
  1. Remove the stale direct-field pattern entirely from AtrController.

  2. Use PlayerInventory#getSelectedSlot() and setSelectedSlot(int) at every access point, producing a fresh artifact.

Created a fresh corrected artifact. AtrController.java now:

  • Uses inventory.getSelectedSlot()

  • Uses inventory.setSelectedSlot(...)

  • Contains no direct inventory.selectedSlot field access

  • Removes the unnecessary helper methods

The reported private-access errors should now be resolved.

_drayx__

make it compatible with 0.18.4 fabric

Kodari AI
KodariAug 14 at 2:45 pm 1
  1. Update the project’s Fabric Loader requirement and related metadata for 0.18.4.

  2. Check the current 1.21.11 setup for APIs that require newer loader/Fabric versions and adjust only if necessary.

  3. Produce the corrected project artifact.

The current project targets Minecraft 1.21.11, whose verified minimum Fabric Loader version is 0.19.2. Setting it to 0.18.4 would make the mod claim compatibility it does not have and may prevent it from loading.

To support Fabric Loader 0.18.4, the project must also be downgraded to an earlier Minecraft/Fabric API version, such as Minecraft 1.21.10. I haven’t changed the project to an unverified combination.

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

import net.fabricmc.api.ModInitializer;
import net.fabricmc.fabric.api.command.v2.CommandRegistrationCallback;
import net.fabricmc.fabric.api.event.lifecycle.v1.ServerTickEvents;
import net.fabricmc.fabric.api.networking.v1.ServerPlayConnectionEvents;

public final class AutomaticReach implements ModInitializer {
    public static final String MOD_ID = "automatic_reach";

    @Override
    public void onInitialize() {
        CommandRegistrationCallback.EVENT.register((dispatcher, registryAccess, environment) ->
            AtrCommands.register(dispatcher));

        ServerTickEvents.END_WORLD_TICK.register(AtrController::tick);

        ServerPlayConnectionEvents.DISCONNECT.register((handler, server) ->
            AtrController.remove(handler.getPlayer()));
    }
}