mojira.dev
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

Comments 6

Honestly I thought sweep attack didn't work at all on players before testing this as I've only played PvP with players on scoreboard teams.

Can confirm for MC 1.12.1.

I've been looking through my old reports and I realized that I'd neglected this bug. I can confirm that it still exists up to 18w05a. I'd learned to live with it, but I don't think it's intended behavior and it limits options.

Can confirm in 21w06a.

Can confirm in 1.16.5 and 21w08b.

Can confirm for 1.19.4

Thomas Hall

(Unassigned)

Confirmed

(Unassigned)

sweep-attack

Minecraft 1.11.2, Minecraft 17w06a, Minecraft 1.12.1, Minecraft 1.12.2, Minecraft 18w05a, ..., 1.16.5, 21w06a, 21w08b, 1.19.4, 24w19b

Retrieved