When a mob is added to a Team and the team has a color, the scoreboard teamkill works when a player kill the mob.
Maybe this intended, but this don't have sense if this bug is marked intended: MC-88743
In this bug mobs don't increases the score by killing a player.
Mobs should not interact with any type of scoreboard according to the previous bug.
How to reproduce
/team add test
/team modify test color blue
/summon minecraft:creeper
/team join test @e[type=minecraft:creeper]
/scoreboard objectives add teamkill teamkill.blue
/scoreboard objectives setdisplay sidebar teamkill
Kill the creeper
-> ❌ The scorebord does increase, contradicting WAI of MC-88743 / MC-46956
Linked issues
Attachments
Comments 7
Is this really a behavior we want to see changed back? Those WAIs were more along the lines of "we don't care about this" than "this is how it is supposed to work".
More issues regarding mobs on teams are getting fixed/triaged, in contradiction with the linked report; clearly their stance towards mobs on teams has changed since that WAI.
I'm having the inverse problem. I increment points when I kill mobs of a particular team, as I intended. However I'm building an arena that's automated, and I created an objective called "ArenaSlain" in which the score is supposed to increment when killed by the arena team (gold).
What actually happens is that mobs will not increment that score even if they are a part of that team. In my tests, however, it behaves as expected with players belonging to the gold team. The score increments and it kills everything (mobs included) on the gold team. I need the mobs to die after killing the arena challenger to properly reset it.