When a goat rams a player wearing armor enchanted with Thorns, it will not take damage, even though it is attacking Thorns armor.
Steps to reproduce:
Equip a piece of armor that has the Thorns enchantment
Summon a goat
Do /execute as @e[type=minecraft:goat,limit=1,sort=nearest] run data modify entity @s Brain.memories."minecraft:ram_cooldown_ticks".value set value 1
Wait for the goat to ram you, if it doesn't, repeat the command
The goat will not take damage when it hits you
Evidence:
demonstrated by Phoenix SC https://www.twitch.tv/videos/987915663 0:57:18
video attachment by Avoma
Most likely cause: Goat rams might be handled with a different system from regular attacks
Proposed solution: Modify the Thorns enchantment to apply to goat rams as well
Confirmed.