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:
/team add foobar
/team modify foobar friendlyFire true
/summon minecraft:pig ~1 ~ ~ {NoAI:1}
/summon minecraft:pig ~1 ~ ~1 {NoAI:1,Team:"foobar"}
/team join foobar @s
Hit the closest summoned pig with a sword
→ The second pig won't be damaged
Comments 6
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.
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.