AutoBlock
[X] DefinitiveAutoBlock — the use-item-while-attacking family. Three sub-flags share one VL pool: AutoBlock (Rain port — shield/sword-block + swing overlap), AutoBlock(SwingUse) (Grim MultiActionsE fold — swing while eating/drinking; vanilla left-click interrupts consuming), and AutoBlock(AttackUse) (Grim MultiActionsA fold — an AttackEvent while isBlocking||isUsingConsumable; vanilla attacking interrupts using). On 1.8 the block path is block-hit autoblock, on 1.21 shield-while-attacking.
What it detects
AutoBlock — the use-item-while-attacking family. Three sub-flags share one VL pool: AutoBlock (Rain port — shield/sword-block + swing overlap), AutoBlock(SwingUse) (Grim MultiActionsE fold — swing while eating/drinking; vanilla left-click interrupts consuming), and AutoBlock(AttackUse) (Grim MultiActionsA fold — an AttackEvent while isBlocking||isUsingConsumable; vanilla attacking interrupts using). On 1.8 the block path is block-hit autoblock, on 1.21 shield-while-attacking.
False-positive guards
- Attacker-in-vehicle exempt
- lastSwingTick overflow guard (Int.MIN_VALUE -> not swinging)
- Block path gated on isBlocking (UseAction.BLOCK), excluding bows (BOW), food (EAT), potions (DRINK)
- SwingUse path gated on isUsingConsumable (excludes bows — same MC-152728 rationale as noSlow)
- On 1.8 sword-blocking is a normal PvP technique -> +30 tick bonus so legit block-hitters don't flag (block path only)
- ProtocolDetector fails open to modern (looser 1.8 gate only loosens)