Mojira Archive
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.