mojira.dev
MC-256020

Players can hurt mobs on same team with friendly fire false

Per @unknown's comment on MC-46956, I'm making a new report for this.

Players can hurt mobs on the same team, unlike other players, when friendly fire is false

Steps to reproduce:

  1. /team add TestTeam

  2. /team modify TestTeam friendlyFire false

  3. /team join TestTeam

  4. /summon skeleton ~ ~ ~ {Team:TestTeam}

  5. attack the skeleton

  6. notice how the skeleton takes damage from your attack.

Expected result:

Friendly fire is respected and the player cannot hurt teammate mobs.

Linked issues

Attachments

Comments 3

I suggest marking this are related to MC-256019 directly as well (and not just via MC-46956), as they're both instances of friendly fire not working for mobs on a team.

Confirmed for 1.21.1

Still in 1.21.4.

user-f2760

(Unassigned)

Confirmed

Platform

Normal

Commands, Mob behaviour

1.19.2, 1.19.3, 1.19.4, 1.20.1, 1.20.2, 23w43b, 24w19b, 1.21.1, 1.21.4

Retrieved