mojira.dev
MC-256019

Mobs on teams can be hit by projectiles whose owner is a teammate when friendly fire is false

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

When mobs are on teams they can be hit by projectiles from teammates, unlike players.

Steps to reproduce:

  1. /team add TestTeam

  2. /team modify TestTeam friendlyFire false

  3. run a few times:

    /summon skeleton ~ ~ ~ {Team:TestTeam,HandItems:[{id:bow,Count:1}]}
  4. get the skeletons to attack you

  5. notice how some of the skeletons take damage from other skeletons' arrows.

Expected result:

Friendly fire is respected and the mobs be hit by teammates' projectiles.

Affects all forms of non-melee damage, so arrows, fireballs, dragon breath, splash potions, evocation fangs, etc.

Linked issues

Attachments

Comments 4

I can confirm this behavior.

Maxim123456789

As Avoma I can confirm this behavior for the Minecraft Version 1.20.4

Still in 1.21.4.

Issue still exists on java 1.21

user-f2760

(Unassigned)

Confirmed

Platform

Normal

Commands

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

Retrieved