Mojira Archive
MC-111435

"minecraft.custom:minecraft.damage_dealt" doesn't increase when the sweeping attack damages nearby entities

The Bug:

"minecraft.custom:minecraft.damage_dealt" doesn't increase when the sweeping attack damages nearby entities.

Steps to Reproduce:

  1. 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
  2. Summon a cow and obtain a diamond sword.
  3. 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.
  4. Reset the scoreboard by using the command provided below.
    /scoreboard players reset @s DamageDealt
  5. 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}
  6. Use a sweeping attack to damage either of the cows while using the diamond sword.
  7. 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.