team add test
team modify test friendlyFire true
summon minecraft:zombie
team join test @e
gamemode survival
Expected:
Zombie attack player
Got:
Zombie ignore player. If attack zombie, he will continue ignore player
Comments 3
frendlyFire is enabled. Zombie can deal damage to player, but won't.
If spawn zombie and iron golem in same team, he will start fight and stop when friendlyFire disabled.
Enemy ignore player in same team regardless of the team rules.
The iron golem's behavior is the problem: MC-95782, that's been triaged by Mojang.
The zombies are acting correctly.
This is by design; friendly fire controls whether damage can be dealt,not the hostility. Teammates are supposed to have your back, no matter what.
In fact, any instances of the team being ignored is considered a bug:
MC-256097
MC-256096
MC-256020
MC-256019
MC-225908
MC-225907
MC-193743
MC-172304
MC-150820
MC-95782
MC-88001