Per @unknown's comment on MC-46956, I'm making a new report for this.
Some entities harm teammates that walk into them, when friendly fire is false
Steps to reproduce:
/team add TestTeam
/team modify TestTeam friendlyFire false
/team join TestTeam
/summon slime ~ ~ ~ {Team:TestTeam,Size:3}
walk into the slime
notice how you take damage
Affected entities:
Slime
Magma Cube
Ender Dragon
Pufferfish
Area Effect Cloud (added for inclusion purposes; it's understandable if this one is WAI)
Expected result:
Friendly fire is respected and they cannot hurt teammates.
Relates to MC-46956, MC-256019, MC-256020 and MC-256097.