Skip to content

A Paper plugin to fix MC-28289 bug aka "sword swapping"

License

Notifications You must be signed in to change notification settings

AutumnVN/hit-swap-fix

Repository files navigation

hit-swap-fix

An attempt to fix hit swapping cuz i cant find one on internet

Requires PaperMC and Minecraft 1.21.4+

What tf is hit swap?

Mojang Bug Tracker: MC-28289 (holyshit 12 year old bug)

It's also called "sword swapping", "breach swapping",... You can search it up on YouTube

By swapping item and attacking at the same time, it uses base damage & cooldown of original item and enchantments & ability to disable shield of swapped item

Players can abuse this to break shield with sword, fire/knockback with axe, breach with sword (super OP btw), preserve durability of original item,...

This plugin resets attack cooldown and refreshes player attributes to new item when player swaps item