mojira.dev
MC-223301

Goats not taking damage when attacking with Thorns armor equipped

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:

  • 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

Linked issues

Attachments

Comments 12

Can confirm in 21w16a.

Can confirm in 21w17a.

Can confirm in 1.17.

Can confirm in 1.17.1.

2 more comments

Can confirm in 1.19.

Can confirm in 1.19.1.

Can confirm in 1.19.2.

Can confirm in 23w31a.

Gabor Korn

slicedlime

Confirmed

Gameplay

Normal

Mob behaviour

goat, thorns

21w15a, 21w16a, 21w17a, 21w18a, 1.17, ..., 23w06a, 1.20.1, 23w31a, 23w33a, 1.20.4

24w18a

Retrieved