mojira.dev
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 @unknown in this comment

Linked issues

Comments 43

hmm, try using @e[type=!Player], and look if it gives an error,

else maybe you should use data tags :s

guillermo le metayer rodriguez

Nope, it dosn't give error, if i list the team players it shows the skeleton id and the testfor @e[team=red_team,type=!Player].
This works in the 1.8 and i remeber that it worked in the 15w35e (I just tested).

mobs ignore all team rules, this is the behaviour that mojang assigned to them, and they resolved similar reports to this, shulkers are the only exception that attack other teams by default

This site is for bug reports only. For feature suggestions or changes please see: Minecraft Suggestions on Reddit.

is not true
do /summon Zombie ~ ~ ~ {Team:teamname}

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

33 more comments

Affects version 1.15.2

Affects snapshot 20w21a

In 1.16.1, after seeing the newly updated info by u/Ozone, I did a test. Can confirm all mobs except for the ones named later will not interact with each other if they under the same team. However, piglins, hoglins, and zoglins will still trigger the bug. 

Cannot reproduce. Tested the following interactions:

  • player attacked enderman in same team

  • player looked at enderman in same team

  • player spawned endermite added to the same team as the enderman team

1.16 mobs have their own ticket.

I would say this specific ticket is fixed?

Is anyone still experiencing this issue specifically with endermen?

I cannot reproduce, Using the team tag and looking at it or hitting it, it stays passive and does not attack the player when hit/looked at.

guillermo le metayer rodriguez

(Unassigned)

Confirmed

Normal

Mob behaviour

Minecraft 15w36c, Minecraft 15w36d, Minecraft 15w37a, Minecraft 15w50a, Minecraft 1.9.2, ..., Minecraft 1.12.2, Minecraft 18w20b, Minecraft 1.14, 1.15.2, 20w21a

Retrieved