Mojira Archive
MC-278205

Cancelling EntityShootBowEvent does not cancel the shooting sound

I have an eventhandler:

@EventHandler
public void onShoot(EntityShootBowEvent e) {
    e.setCancelled(true);
}

The event seems otherwise cancelled (no arrow fired), but the sound still plays. I verified this for players shooting bows and crossbows, pillagers shooting crossbows, and piglins shooting crossbows. When skeletons and strays shoot bows the sound is correctly cancelled.

Invalid

FoPzl

2024-11-08, 08:55 PM

2024-11-08, 09:33 PM

2024-11-08, 09:33 PM

0

0

Unconfirmed

(Unassigned)

1.21.3

-