mojira.dev
MC-100923

Entities with knockback resistance can get knocked back using Punch

The bug

Trying to summon a villager that cannot be moved (with 1.0 velocity-resistance). When shot with an non enchanted bow, the villager won't move. But when shot with a punch bow, it will, depending on the strength of the enchantment.

How to reproduce

  1. Get yourself a bow with the punch enchantment.

    /give @p bow{Enchantments:[{id:punch,lvl:2}]}
  2. Summon a villager with Knockback resistance.

    /summon minecraft:villager ~ ~ ~ {Attributes:[{Name:generic.knockback_resistance,Base:1.0}]}

    → ❌ The villager took knockback

Linked issues

Attachments

Comments 27

@unknown no need to comment if you can add affected versions yourself.

Is this still an issue in the latest snapshot 16w44a? If so please update the affected versions.

This is an automated comment on any open or reopened issue with out-of-date affected versions.

17 more comments

Can confirm in 1.17.

Can confirm in 1.17.1.

Can confirm in 1.18.1.

This seems to be fixed in 22w12a.

Can confirm fixed in 22w12a.

Stef

(Unassigned)

Confirmed

Normal

Mob behaviour

bow, iron_golem, knockback_resistance, punch

Minecraft 1.9.2, Minecraft 16w15b, Minecraft 1.10, Minecraft 16w44a, Minecraft 1.12.1, ..., 21w14a, 21w16a, 1.17, 1.17.1, 1.18.1

22w12a

Retrieved