Mojira Archive
MC-44280

Entities don't receive knockback from projectiles fired from dispensers

Fireworks, eggs, snowballs, and splash potions of harming fired from dispensers don't knock back mobs, but they do when thrown by the player or a mob such as a snow golem or witch.

Steps to Reproduce:

  • Build the setup as shown in the attachment below. setup.png
  • Place some snowballs inside of the dispenser.
  • Summon a husk on the diamond block.
  • Use the lever to activate the dispenser and watch the husk closely.

Observed Behavior:
Projectiles fired from dispensers don't deal any knockback to entities.

Expected Behavior:
Projectiles fired from dispensers would deal knockback to entities.

Note

Arrows are not affected by this bug, as they knock back mobs when fired either from a bow or a dispenser.

Code analysis

Code analysis by Marcono1234 can be found in this comment.