Mineuniverse
Log in Register
Mods

πŸ›‘οΈ Instant-Shield-Break

πŸ” 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.
by Shubham96
Download Claim this project
926 downloads
0 likes
Updated Jul 6, 2026
0 hypes
Automation Utility & QoL

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:

  1. Attack fired β€” player hits enemy
  2. Shield check β€” isUsingItem() detects if the target is raising a shield
  3. Swap to axe β€” @Inject HEAD swaps the held item to an axe
  4. Axe hits β€” shield is disabled
  5. Revert slot β€” @Inject RETURN swaps 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

instant-shield-break-1.0.0.jar
MC 1.21.2-Snapshot, 1.21, 1.21.6-snapshot, 1.20.2-Snapshot, 1.20.5-Snapshot, 1.19-Snapshot, Client, 1.21.1-Snapshot, 1.19.3, 1.20.2, 1.19.4, Fabric, 1.21.8, 1.19.4-Snapshot, 1.20.5
Release 2026-05-10 Get

More from Shubham96

Auto-Attibute-Swap
4,180
Crystal PvP INV Organizer!
1,223

You Might Also Like

Liberty's Villagers
Quality of Life and AI improvements for Villagers
9,968,428
No More Pop-ups
A Minecraft mod to remove in-game pop-ups
996,708
BetterRandomSourceConcurrencyCrash
Improved logging of crashes caused by mods accessing RandomSources from the wrong thread
99,371
Exit Confirmation
Often accidentally closed Minecraft? This mod might help!
99,067
NoDynamicFps
Adds an option to disable Vanilla's Dynamic FPS implementation
99,004
Immersive Crafting
Adds crafting recipes to immersive portals
9,998