mojira.dev
MC-165302

The sweeping attack doesn't apply strength or weakness effects to other mobs

The Bug:

The sweeping attack doesn't apply strength or weakness effects to other mobs.

Steps to Reproduce:

  1. Obtain a netherite sword and give yourself the strength effect by using the command provided below.

    /effect give @s minecraft:strength 999999 3
  2. Summon two cows that both have 2 health by using the commands provided below.

    /summon minecraft:cow ~ ~ ~-2.5 {NoAI:1b,Health:2f}
    /summon minecraft:cow ~1 ~ ~-2.5 {NoAI:1b,Health:2f}
  3. Using the netherite sword, hit the cow directly in front of you and take note of how it dies.

  4. Observe how the cow that was damaged by the sweeping attack does not die, despite having a maximum health of 2 and being damaged with a netherite sword under the strength 4 effect.

  5. Take note as to whether or not the sweeping attack applies strength or weakness effects to other mobs.

Observed Behavior:

The sweeping attack doesn't apply strength or weakness effects to other mobs.

Expected Behavior:

The sweeping attack would apply strength and weakness effects to other mobs.

Linked issues

Attachments

Comments 3

I'd like to request for this ticket to be reopened as this isn't a duplicate of MC-93669MC-93669 talks about how the sweeping attack doesn't ignite other mobs when using the fire aspect enchantment, whereas this ticket is talking about the sweeping attack doesn't take into consideration the strength and weakness effects when attacking other mobs. I'm more than happy to take ownership of this report and update it accordingly to reflect what the problem is here.

I can confirm for 21w39a; but the description is a bit misleading, because you need a sword without sweeping edge.

Elliot Kluken

Avoma

(Unassigned)

Community Consensus

Combat

19w45b, 1.17.1, 21w39a, 21w40a, 21w43a, ..., 1.21, 1.21.3, 1.21.4, 25w08a, 1.21.7

Retrieved