No Weak Attack is a client side Fabric mod that makes it so you can only attack if your attack cooldown is fully restored. It only cancels swinging at enemies, so missing will still swing your tool. This mod works on every minecraft version I've thrown at it (1.14, 1.15, 1.16 & 1.17).