The Bug:
"minecraft.custom:minecraft.damage_dealt" doesn't increase when the sweeping attack damages nearby entities.
Steps to Reproduce:
Create a scoreboard objective for tracking when you deal damage and set it to display on the sidebar by using the commands provided below.
/scoreboard objectives add DamageDealt minecraft.custom:minecraft.damage_dealt
/scoreboard objectives setdisplay sidebar DamageDealt
Summon a cow and obtain a diamond sword.
Use a sweeping attack to damage the cow while using the diamond sword and take note of how the scoreboard increases by a value of 70.
Reset the scoreboard by using the command provided below.
/scoreboard players reset @s DamageDealt
Summon two cows next to one another by using the commands provided below.
/summon minecraft:cow ~ ~ ~-2.5 {NoAI:1b}
/summon minecraft:cow ~1 ~ ~-2.5 {NoAI:1b}
Use a sweeping attack to damage either of the cows while using the diamond sword.
Take note as to whether or not "minecraft.custom:minecraft.damage_dealt" increases when the sweeping attack damages nearby entities.
Observed Behavior:
"minecraft.custom:minecraft.damage_dealt" doesn't increase when the sweeping attack damages nearby entities.
Expected Behavior:
"minecraft.custom:minecraft.damage_dealt" would increase when the sweeping attack damages nearby entities.
Confirmed (as of 1.12-pre7). Doesn't make sense that it count towards that statistic.