mojira.dev
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.

Linked issues

Attachments

Comments 11

Confirmed (as of 1.12-pre7). Doesn't make sense that it count towards that statistic.

Confirmed for 1.12.

Confirmed in 1.16.1 and 20w30a.

Can confirm in 20w51a.

Can confirm in 21w05b.

1 more comments

Can confirm in 21w08b. Video attached.

Can confirm in 1.16.5.

Can confirm in 21w11a.

Can confirm in 21w17a.

Can confirm in 1.17.1. I'd like to request ownership of this ticket since the reporter has been inactive for over a year.

McModknower

Avoma

(Unassigned)

Confirmed

Player

Minecraft 16w50a, Minecraft 1.11.2, Minecraft 1.12 Pre-Release 7, Minecraft 1.12, Minecraft 1.13.2, ..., 1.20.6, 1.21, 1.21.3, 1.21.4, 25w08a

Retrieved