Thorns does not work when one entity damages another via the /damage command.
To reproduce
/summon minecraft:giant ~ ~ ~ {attributes:[{id:max_health,base:1000d},{id:knockback_resistance,base:1d}],equipment:{chest:{id:diamond_chestplate,components:{enchantments:{thorns:3}}}}}/summon minecraft:iron_golem ~ ~ ~ {NoAI:1b}Repeatedly run
/damage @n[type=minecraft:giant] 1 minecraft:mob_attack by @n[type=iron_golem]
❌ Thorns is never triggered/data modify entity @n[type=minecraft:iron_golem] NoAI set value 0b
✅ The iron golem sometimes takes Thorns damage when it attacks the giant
Linked issues
relates to 5
Comments 2
Thank you for your report!
After consideration, the issue is being closed as Won't Fix.
Please note that this is not the same as Working as Intended, as this bug report correctly describes behavior in the game that might not be the intended or desirable behavior, but it will not be fixed right now. Sometimes, this is because the issue reported is minor and/or impossible to change without large architectural changes to the code base.
Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support (Technical Issues) – 📧 Microsoft Support (Account Issues)
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki
Can confirm.