Description
⚔️ Auto-Attribute Swapping
Auto-Attribute Swapping exploits a longstanding vanilla Minecraft behavior (MC-28289) — when you switch hotbar slots in the same tick as an attack packet, the server reads damage from your new item but uses the cooldown that was already charged from your old one.
This mod automates the entire sequence at the packet level, invisibly, on every critical hit.

Crit conditions
The swap only activates when all of these are true:
- Falling (fall distance > 0)
- Airborne (not on ground)
- Not sprinting
- Not in water or lava
- Not on a ladder / vine
- No Blindness status effect
- Not riding a vehicle (horse, elytra, etc.)
Requirements
| Dependency | Version |
|---|---|
| Minecraft | 1.21 – 1.21.4 |
| Fabric Loader | ≥ 0.15.0 |
| Fabric API | Any |
| Prism Mod Menu | Any |
| Java | 21+ |
Installation
- Install Fabric Loader ≥ 0.15.0
- Drop
Fabric APIinto your mods folder - Drop
Prism Mod Menuinto your mods folder - Drop
ghostswap-2.0.0.jarinto your mods folder - Launch and press G to enable
Keybinds
| Key | Action |
|---|---|
| G | Toggle Auto-Attribute Swapping on / off |
Notes
- Client-side only — works on any server (vanilla, Paper, Spigot)
- Tested on Minecraft 1.21 – 1.21.4 with Fabric
- Made by Shubham96 · Prism Studios


