The bug
The sword "special attack" will work, even when moving, as long as the attack meter is full.
@unknown:
More MC combat shenanigans... Crit and knockback attack types are now separate, and there will be a third type if you move slowly
Code analysis
Based on 1.11.2 decompiled using MCP 9.35 rc1
The method net.minecraft.entity.player.EntityPlayer.attackTargetEntityWithCurrentItem(Entity) has besides other ones the following condition to perform a sweep attack:
this.distanceWalkedModified - this.prevDistanceWalkedModified < this.getAIMoveSpeed()The problem seems to be that for the server most of the time this.distanceWalkedModified and this.prevDistanceWalkedModified have the same value. Maybe because the client sends packets with its position instead of its motion and therefor this method is not called when the player walks server-side.
Attachments
Comments 10
Is this still an issue in the latest snapshot 16w44a? If so please update the affected versions.
This is an automated comment on any open or reopened issue with out-of-date affected versions.
https://twitter.com/jeb_/status/634634062888587264