Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-114314

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • Minecraft 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
    • Confirmed
    • (Unassigned)

      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

            Unassigned Unassigned
            Tallone55 Thomas Hall
            Votes:
            14 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              CHK: