mojira.dev
MC-266527

Enemies added to same team with player won't attack player

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

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:

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.

Hunter

(Unassigned)

Unconfirmed

(Unassigned)

23w45a

Retrieved