The bug
Saddled horses with NoAI are affected by motion when riding them after they have been attacked or pushed.
How to reproduce
Summon a horse
/summon minecraft:horse ~ ~ ~ {NoAI:1b,Tame:1b,SaddleItem:{id:"minecraft:saddle",Count:1b}}
Punch it
Mount it
→ ❌ The horse moves in the direction you punched it
Linked issues
is duplicated by 2
Comments 18
Confirmed for 1.13.1 release.
Like @unknown already commented, if you summon a Horse with NoAI e.g. in the air, it will not drop down (= intended), but as soon as you mount it while in the air, it will drop down.
It doesn't matter whether or not it got a saddle, it only has to be tame.
Also, if you set any pitch value and it is saddled, it will lose that pitch value when you mount it, no matter if it was in the air or not.
It will keep its pitch value if it was not saddled though.
Can be tested with:
/summon horse ~ ~ ~ {NoAI:1b,Tame:1b,Variant:0,Rotation:[90F,-90F],SaddleItem:{id:"minecraft:saddle",Count:1b}}
Furthermore, horses with NoAI set to true will still wiggle their tail (WaI?).
Lastly, as long as it is saddled and tame, you can ride a NoAI-horse normally and also make it jump. Unsure whether this could be a keeper though, as it may enable mapmakers to some neat contraptions with a controllable mount that is otherwise non-moving. So before this would be changed, it'd be great if Mojang could discuss this internally, preferrably also with mapmakers.
Relates to MC-107849.
This bug remains in snapshot 18w07a.
And also, when you ride a horse, a donkey or a mule with saddle and NoAI, it is affected by gravity and falls to the ground.