Mojira Archive
MC-114314

Sweep attack doesn't affect entities on same team even with friendlyFire on

The bug

When using the sweep attack with the sword, entities on the same scoreboard team as the player cannot be hit with the sweep attack whether the team has friendlyFire allowed or not.

Steps to reproduce:

  1. /team add foobar
  2. /team modify foobar friendlyFire true
  3. /summon minecraft:pig ~1 ~ ~ {NoAI:1}
  4. /summon minecraft:pig ~1 ~ ~1 {NoAI:1,Team:"foobar"}
  5. /team join foobar @s
  6. Hit the closest summoned pig with a sword
    → The second pig won't be damaged

Unresolved

Thomas Hall

2017-03-02, 06:22 PM

2024-05-11, 11:16 PM

14

9

Confirmed

(Unassigned)

sweep-attack

Minecraft 1.11.2 - 24w19bMinecraft 1.11.2, Minecraft 17w06a, Minecraft 1.12.1, Minecraft 1.12.2, Minecraft 18w05a, Minecraft 18w07c, 1.15.2, 20w21a, 1.16.1, 1.16.2 Release Candidate 2, 1.16.2, 20w46a, 1.16.5, 21w06a, 21w08b, 1.19.4, 24w19b

-