Mojira Archive
MC-88001

Endermen can attack players in the same team

Affected mobs:

  • Skeleton
  • Enderman
  • possibly some others

I am making a map in which I need to create a skeleton in each team.
So i set the friendlyfire to false and join me and the skeleton in the same time.
example:

/summon enderman
/scoreboard teams join red_team @e[r=10]

And nothing changes, he shoots me arrows.

I have searched for this bug and i didn't saw any reports, sorry if its repeated.

Some other mobs do not attack team mates:

do

/summon zombie ~ ~ ~ {Team:teamname}

zombie will not attack players on team teamname (checks for uppercase letters too)


Code analysis by Marcono1234 in this comment