mojira.dev
MC-311525

/damage does not trigger Thorns

Thorns does not work when one entity damages another via the /damage command.

To reproduce

  1. /summon minecraft:giant ~ ~ ~ {attributes:[{id:max_health,base:1000d},{id:knockback_resistance,base:1d}],equipment:{chest:{id:diamond_chestplate,components:{enchantments:{thorns:3}}}}}

  2. /summon minecraft:iron_golem ~ ~ ~ {NoAI:1b}

  3. Repeatedly run /damage @n[type=minecraft:giant] 1 minecraft:mob_attack by @n[type=iron_golem]
    ❌ Thorns is never triggered

  4. /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

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

clamlol

(Unassigned)

Community Consensus

26.2, 26.3 Snapshot 10

Retrieved