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:
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
Attack an entity through a melee source of damage and take note of how the scoreboard increases.
Attack an entity through the use of any projectile.
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.
confirmed for 13w38c