mojira.dev
MC-145114

Pillagers don't properly aim when shooting fireworks

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

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

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.

Can confirm in 1.20.1

gaspoweredpick

(Unassigned)

Confirmed

Mob behaviour

Minecraft 19w09a, Minecraft 19w11a, Minecraft 19w11b, Minecraft 19w12a, Minecraft 19w12b, ..., 1.20.2 Release Candidate 1, 1.20.2 Release Candidate 2, 1.20.4, 1.21, 1.21.3

Retrieved