mojira.dev
MC-29519

"minecraft.custom:minecraft.damage_dealt" doesn't increase when using projectiles to attack entities

The Bug:

The "minecraft.custom:minecraft.damage_dealt" scoreboard objective only tracks when the player deals damage to entities by using melee sources and not ranged sources.

Steps to Reproduce:

  1. Create a scoreboard objective for tracking when the player deals 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. Attack an entity through a melee source of damage and take note of how the scoreboard increases.

  3. Attack an entity through the use of any projectile.

  4. Take note as to whether or not "minecraft.custom:minecraft.damage_dealt" increases when using projectiles to attack entities.

Observed Behavior:

The scoreboard doesn't increase.

Expected Behavior:

The scoreboard would track damage dealt to entities when using projectiles.

Linked issues

Attachments

Comments 47

confirmed for 13w38c

Confirmed 1.8 snapshots

Also critical hits will add less points than normal hits to the damage dealt scoreboard

37 more comments

Can confirm for 1.17 pre-release 3

Can confirm for 1.19.4

can confirm in 24w07a.

Can confirm for 1.20.4

Dustin Held

Avoma

(Unassigned)

Confirmed

Platform

Normal

Player

Minecraft 13w36a, Minecraft 13w42b, Minecraft 13w43a, Minecraft 1.7.1, Minecraft 1.7.2, ..., 1.21.3, 1.21.4, 25w08a, 1.21.5, 1.21.6

Retrieved