Players don't receive thorns damage when attacking entities wearing thorns armor with indirect sweeping attacks
The Bug:
Players don't receive thorns damage when attacking entities wearing thorns armor with indirect sweeping attacks.
Steps to Reproduce:
- Place down a command block and input the command provided below into it.
/summon minecraft:zombie ~ ~1 ~ {ArmorItems:[{id:"minecraft:diamond_boots",tag:{Enchantments:[{id:"minecraft:thorns",lvl:3}]},Count:1b},{id:"minecraft:diamond_leggings",tag:{Enchantments:[{id:"minecraft:thorns",lvl:3}]},Count:1b},{id:"minecraft:diamond_chestplate",tag:{Enchantments:[{id:"minecraft:thorns",lvl:3}]},Count:1b},{id:"minecraft:diamond_helmet",tag:{Enchantments:[{id:"minecraft:thorns",lvl:3}]},Count:1b}]} - Activate the command block, obtain a wooden sword, and summon another zombie by using the command provided below.
/summon minecraft:zombie ~ ~ ~ {ArmorItems:[{},{},{},{id:"minecraft:iron_helmet",Count:1b}]} - Switch to survival mode and wait for both of the zombies to begin approaching you.
- Using a sweeping attacking, attack the zombie with the iron helmet so that the zombie with the thorns armor is also damaged as well.
- Do this multiple times and observe if you receive thorns damage.
- Take note as to whether or not players receive thorns damage when attacking entities wearing thorns armor with indirect sweeping attacks.
Observed Behavior:
Players don't receive thorns damage.
Expected Behavior:
Players would receive thorns damage.
Created Issue:
Sword sweeping attack ignores thorns
When you attack an entity that has an another entity next to it that has thorns, the sweeping attack will affect the entity with thorns but not damage you.
Added Affects Versions: 1.16.4-rc1
Added Affects Versions: 1.16.4
Added Affects Versions: 20w46a
Added Affects Versions: 20w51a
Changed Description:
Added Affects Versions: 21w06a
Added Affects Versions: 21w07a
Added Attachments:
Added Affects Versions: 21w08b
Added Affects Versions: 21w15a
Added Affects Versions: 21w16a
Added Affects Versions: 1.17.1
Changed Summary:
Sword sweeping attack ignoresthornsSword sweeping attack ignores Thorns
Added Attachments:
Changed Description:
The Bug:
Players don't receive thorns damage when attacking entities wearing thorns armor with indirect sweeping attacks.
Steps to Reproduce:
- Place down a command block and input the command provided below into it.
/summon minecraft:zombie ~ ~1 ~ {ArmorItems:[{id:"minecraft:diamond_boots",tag:{Enchantments:[{id:"minecraft:thorns",lvl:3}]},Count:1b},{id:"minecraft:diamond_leggings",tag:{Enchantments:[{id:"minecraft:thorns",lvl:3}]},Count:1b},{id:"minecraft:diamond_chestplate",tag:{Enchantments:[{id:"minecraft:thorns",lvl:3}]},Count:1b},{id:"minecraft:diamond_helmet",tag:{Enchantments:[{id:"minecraft:thorns",lvl:3}]},Count:1b}]}- Activate the command block, obtain a wooden sword, and summon another zombie by using the command provided below.
/summon minecraft:zombie ~ ~ ~ {ArmorItems:[{},{},{},{id:"minecraft:iron_helmet",Count:1b}]}- Switch to survival mode and wait for both of the zombies to begin approaching you.
- Using a sweeping attacking, attack the zombie with the iron helmet so that the zombie with the thorns armor is also damaged as well.
- Do this multiple times and observe if you receive thorns damage.
- Take note as to whether or not players receive thorns damage when attacking entities wearing thorns armor with indirect sweeping attacks.
Observed Behavior:
Players don't receive thorns damage.
Expected Behavior:
Players would receive thorns damage.
Changed Summary:
Sword sweeping attack ignores ThornsPlayers don't receive thorns damage when attacking entities wearing thorns armor with indirect sweeping attacks
Added Affects Versions: 1.20.1
Added Assignee:
[Mojang] slicedlime
Added Affects Versions: 1.20.4

Hey there, I can confirm
Can confirm in 20w51a.
Can confirm in 21w03a.
Affects 21w06a
Can confirm in 21w07a.
Can confirm in 21w08b. Video attached.
Can confirm in 21w15a.
Can confirm in 21w16a.
Confirmed in 1.17.1.
Can confirm in 1.18.2 and 22w18a.
Can confirm in 1.19.1. MC-200899.png