The bug
A wandering trader spawned in my world. I started playing around with it, and I summoned a zombie. The llama spit at the zombie, but kept spitting after the zombie was killed.
Note that the llama stopped when I logged out and back in.
How to reproduce
/summon trader_llama ~ ~ ~
/summon zombie ~ ~ ~
➕ - Llama spits at zombie
➕ - Zombie dies
➖ - Llama continues spitting at nothing
Attachments
Comments 10
Still happening in 1.14.4 according to MC-159957
Just had this happen in 1.16.4. The wandering llama was spitting at a second one and after it died the first keeps on spitting onto the ground, where it was previously standing. I can confirm that after restarting it stops and behaves as expected.
I opened a report, but I didn't find that it was already discussed
You can reproduce it by using a leash on a llama and hitting him.
When spit loop starts, u can stop it by either stretching the leash (by running away) or by removing the leash with right-click on the llama.
Without the leash, the llama will never spit endlessly. That's also why it can happen with a wandering trader, hit a llama once and it will stop spitting only when the trader, by running away, stretches the leash enough to make the llamas follow him.
By my thought, this is not intentional.
Here's a 1.16.5 reproduction that I did
[media]
Still an issue in 19w12b?