mojira.dev
MC-53015

stat.damageTaken does not increment for Mobs

When using an objective for stat.damageTaken, if you hit a mob, their player data for that objective does not go up. It only works for players. This might be on purpose, but seeing as most of the other scoreboard works with entities, it would make sense to implement this into the game. Thanks!

Linked issues

Comments 4

Thank YOU!!! I Have been having exactly the same problem and this would be useful for boss fights in custom maps so the boss activates some command blocks when it takes X amount of damage. Anyway PLEASE FIX

The same happens with any other statistic, even ones for teams. I tried doing a teamKills objective and placed villagers in one team and zombies in the other, the kills would not increment. Not even Health objectives work.

It may be, as OP stated, that mobs do not have statistics tracked, so you can't use values other than dummy.

Confirmed for 14w28b

Dakotah Intriglia

(Unassigned)

Unconfirmed

Minecraft 14w11b, Minecraft 14w28b

Retrieved