mojira.dev
MC-256884

Mobs don't shoot correctly from crossbows

The bug

Mobs don't shoot correctly from crossbows.

To reproduce

  • Summon a pillager or piglin with a crossbow:

    /summon piglin ~ ~ ~ {IsImmuneToZombification:1b, HandItems:[{id: "minecraft:crossbow", Count: 1b, tag: {ChargedProjectiles: [], Damage: 1, Charged: 0b}}, {}]}
  • Go to survival mode.

  • Wait for it to attack you.

Observed result

The mob will shoot in the completely wrong direction.

Expected result

The mob would shoot in the correct direction.

Linked issues

Attachments

Comments 3

Can confirm.

It's OK for Players. When Players use a Crossbow, it works properly.

Confirmed this bug is true in Hard mode and Normal mode, when in survival. Pillagers always shoot the arrows to their right.

ampolive

v-hjonson+bugs

Confirmed

Platform

Very Important

Mob behaviour

22w43a, 22w44a

22w45a

Retrieved