mojira.dev
MC-122109

score.teamkill counts when a mob is killed by a player

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

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.

 

 

Can confirm in 21w03a.

Can confirm in 21w05b.

Can confirm in 1.16.5 and 21w08b.

Video attached.

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.

Seeing how the report got reopened and marked as invalid per the requested review of it, I think it's safe for mods to tag this as (potentially) WAI. The contradiction no longer is the case.

Autopoietico

(Unassigned)

Confirmed

(Unassigned)

Minecraft 1.12.2, Minecraft 17w46a, 1.15.1, 21w03a, 1.16.5, 21w05b, 21w08b, 1.21.4

Retrieved