The stat.damageDealt doesn't take any damage reduction like armor, protection or resistance into account when incrementing the score.
Example: Summon a Zombie with resistance 5 which makes it invulnerable. Hitting the zombie will still increment the stat.damageDealt score as if the resistance effect wasn't there. The same behavior is seen with armor, and armor with protection enchantments.
This also applies to stat.damageTaken.
As of 14w31a. stat.damageTaken is tracked correctly.
Comments 7
Agreed this is not a duplicate of MC-29518.
As of 14w31a, stat.damageTaken (MC-49590) is now tracked correctly, but stat.damageDealt still ignores any armor, enchantments, etc. that the other entities have. So, if you hit another player with a wooden sword, it will count as dealing 5 hp of damage even if they had full enchanted diamond armor and received no visible damage on their screen.
The damage dealt statistic tracks how much damage is dealt by the player by taking the difference between the attacked entities health before and after the hit.
Based on this the report would be valid because an entity with resistance 5 will not lose any health at all
Searge, your comment suggests that the intended behavior is exactly what this ticket thinks it should be.
These are not duplicates... They are separate issues.