The Bug:
Entities hit by indirect sweeping attacks receive more knockback than entities hit by direct sweeping attacks.
The same amount of knockback should be applied to every entity.
Steps to Reproduce:
Summon two husks that cannot move around that are next to one another by using the commands provided below.
/summon minecraft:husk ~ ~ ~-3 {attributes:[{id:"minecraft:movement_speed",base:0.0}]}
/summon minecraft:husk ~1 ~ ~-3 {attributes:[{id:"minecraft:movement_speed",base:0.0}]}
Obtain a wooden sword and stand in front of any one of the husks.
Attack both of the husks with a singular sweeping attack and observe the knockback that they both receive.
Observed Behavior:
Different amounts of knockback are applied to entities depending on whether they were directly or indirectly damaged.
Expected Behavior:
The same amount of knockback should be applied to every entity that's damaged.
Can confirm:
[media]