The bug
When a pillager shoots fireworks, it treats them as arrows, causing them to shoot a bit too high.
How to reproduce
Use the following command to summon a pillager that shoots explosive firework rockets:
/summon minecraft:pillager ~ ~ ~ {HandItems:[{id:crossbow,Count:1b},{id:firework_rocket,Count:64b,tag:{Fireworks:{Flight:2,Explosions:[{Type:0,Flicker:0,Trail:0,Colors:[I;4408131],FadeColors:[I;1973019]}]}}}]}
As the pillager fights, it will rarely hit its target because it shoots quite high.
Attachments
Comments 4
Like I said, it's because the pillagers think they're arrows, and they don't aim straight at the player because of this. I assume that this could be fixed if the pillagers were programmed to shoot straight at the player instead of acting like firework rockets obey gravity and shooting them too high.
Yes, their hit rate is very low, even if I stand still and let they shot me, they are hard to hit me with firework