The Bug:
The sweeping attack doesn't apply strength or weakness effects to other mobs.
Steps to Reproduce:
Obtain a netherite sword and give yourself the strength effect by using the command provided below.
/effect give @s minecraft:strength 999999 3
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}
Using the netherite sword, hit the cow directly in front of you and take note of how it dies.
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.
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
is duplicated by 1
relates to 1
Attachments
Comments 3
I'd like to request for this ticket to be reopened as this isn't a duplicate of MC-93669. MC-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.
Relates to MC-93669.