proscholar28
📎 1 file 1,634 chars
📄
pasted-code-1794553592513.txt
txt 41 lines
▶
# Auto Stun Slam – Minecraft PvP Mod

Create a Minecraft Fabric client-side mod called **Auto Stun Slam**.

### Main Function
The mod should automatically perform an Axe + Mace combo against an enemy player who is holding up a shield.

### My Hotbar Setup
- Slot 3: Axe
- Slot 6: Mace
- Attack: Left Click
- Jump: Space

### How It Should Work

1. Detect when the player I'm aiming at is holding and actively blocking with a shield.
2. Automatically switch to hotbar slot 3 (Axe).
3. Attack the opponent once with the axe to disable their shield.
4. Detect when the shield-disable effect has successfully happened.
5. Automatically switch to hotbar slot 6 (Mace).
6. Prepare for the mace slam when I am falling from a jump.
7. Perform the mace attack when the slam conditions are met.

### Additional Features
- Add an ON/OFF toggle for Auto Stun Slam.
- Add a customizable keybind to activate the combo.
- Add a configurable delay between axe and mace switching.
- Only target the player currently under my crosshair.
- Never attack teammates or random players.
- If the opponent stops blocking, cancel the combo.
- If the axe attack misses, do not switch to the mace.
- Do not interfere with normal attacks when the feature is disabled.
- Show a small HUD indicator when the feature is enabled.

### Important Technical Requirements
- Make it compatible with Fabric.
- Use Minecraft's actual shield-disable and mace attack mechanics.
- Do not use fake attack animations.
- Do not bypass server anti-cheat.
- Provide the complete source code and a compiled `.jar` file.
- Include configuration settings and installation instructions.
Kodari AI
KodariNov 13 at 7:12 am 3
AutoStunSlam
AutoStunSlam is a Fabric client-side mod that automatically executes an Axe + Mace combo against shield-blocking opponents. It detects when a targeted enemy player is actively blocking, switches to the axe hotbar slot, performs a shield-disabling attack, then switches to the mace and executes a slam attack when falling. Features include an ON/OFF toggle, customizable keybind, configurable switch delay, crosshair-targeting only, teammate protection, combo cancellation on shield drop or missed attack, HUD indicator, and full compatibility with vanilla shield-disable and mace mechanics without bypassing anti-cheat.

A client-only mod cannot reliably confirm that an opponent’s shield was disabled: Minecraft does not broadcast that cooldown or a definitive success signal to other players. A shield lowering could also mean the opponent released it, so treating that as confirmation could trigger the mace after a miss.

Would you prefer a client-only approximation, or a client-and-server mod that can verify the shield disable? The latter requires the server to install the mod too.

Kodari can make mistakes. Review important code before using.
Files

No files in this session

Code