Compatibility
Minecraft: Java Edition
Platforms
Supported environments
Links
Tags
Creators
Details
Text Description (Accessibility Transcription)
Instant-Shield-Break v1.0
NETHPOT PVP Ā· FABRIC MOD Ā· CLIENT-SIDE
Auto-breaks enemy shields in nethpot PvP by swapping to an axe at the exact moment of attack, then reverting instantly ā all within a single tick. No GUI, no keybinds, always on.
Tags: Fabric API Ā· Java Ā· MC 1.19ā1.21 Ā· 1-tick swap Ā· Always active Ā· Zero flicker
āļø How the Swap Works
A five-step process that occurs within a single tick:
- Attack fired ā player hits enemy
- Shield check ā
isUsingItem()detects if the target is raising a shield - Swap to axe ā
@Inject HEADswaps the held item to an axe - Axe hits ā shield is disabled
- Revert slot ā
@Inject RETURNswaps back to the original item instantly
š¦ Module Breakdown
ShieldDetector (util/ShieldDetector.java)
Checks if the target player is actively raising a shield via isUsingItem() + item identity
check. Catches the intent before the 5-tick raise delay, ensuring no missed hits.
InventoryScanner (util/InventoryScanner.java)
Scans hotbar slots 0ā8 first, then main inventory slots 9ā35. Maintains a cached
last-used axe slot for instant lookup on repeated attacks. Supports any modded axe
extending AxeItem.
SwapHandler (handler/SwapHandler.java)
Orchestrates the full swap sequence. Guards against spam with a 150ms cooldown. Sends a
vanilla UpdateSelectedSlotC2SPacket for server sync. Reverts in the same call-stack frame
ā zero extra ticks.
Attack Mixin (mixin/ClientPlayerInteractionManagerMixin.java)
Hooks into attackEntity() at HEAD (pre-packet) and RETURN (post-packet). Only
intercepts PlayerEntity targets ā mob attacks pass through unmodified.
Config (config/ShieldBreakConfig.java)
GSON-backed JSON config at config/instant-shield-break.json. Supports enabled toggle,
cooldownMs tuning, and debugLogging for verbose output. Auto-creates defaults on first
launch.
š At a Glance
| Stat | Value |
|---|---|
| Tick swap window | 1 |
| Spam cooldown | 150ms |
| Visible flicker frames | 0 |
| Inventory slots scanned | 35 |
| Mixin inject points | 2 |
| Source modules | 5 |
by Shubham96 Ā· MIT License Ā· Fabric 1.19ā1.21 Ā· instant-shield-break v1.0


