What I expected to happen was...:
Goat knockback being changeable with attributes
What actually happened was...:
Goat ram knockback being locked and not changeable with commands
Steps to Reproduce:
1. summon a goat with the attack knockback set to any number
/summon minecraft:goat ~ ~1 ~ {Attributes:[{Name:"generic.attack_knockback",Base:100f}]}
2. goats rams an entity
3. entity distance doesnt change no matter the value of the attribute
Attachments
Comments


added a command to reproduce the bug
I can confirm that this is an issue. When a goat rams you the "minecraft:generic.attack_knockback
" is not considered and normal knockback is dealt to you. Also affects 1.17.1.
Can confirm in 1.18.1.
Can confirm in 1.19.1.

Relates to MC-269226. This pertains to a broader range of mobs beyond just goats.
It might be helpful if you attached a command in the description so people can more easily reproduce the bug