Affected mobs:
SkeletonEnderman
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
is duplicated by 7
relates to 2
Comments 43
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)
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?
hmm, try using @e[type=!Player], and look if it gives an error,
else maybe you should use data tags :s