Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-100923

Entities with knockback resistance can get knocked back using Punch

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • 22w12a
    • Minecraft 1.9.2, Minecraft 16w15b, Minecraft 1.10, Minecraft 16w44a, Minecraft 1.12.1, Minecraft 1.13, Minecraft 18w31a, Minecraft 18w32a, Minecraft 1.13.2, Minecraft 19w12b, Minecraft 19w13b, Minecraft 19w14a, Minecraft 19w14b, Minecraft 1.14 Pre-Release 2, 19w35a, 1.15.1, 1.15.2, 20w17a, 20w21a, 1.16 Pre-release 4, 1.16 Pre-release 5, 1.16 Pre-release 7, 1.16 Pre-release 8, 1.16 Release Candidate 1, 1.16, 1.16.1, 20w27a, 1.16.3, 20w46a, 21w03a, 1.16.5, 21w05b, 21w06a, 21w07a, 21w08b, 21w11a, 21w14a, 21w16a, 1.17, 1.17.1, 1.18.1
    • Confirmed
    • Mob behaviour
    • Normal

      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

            Unassigned Unassigned
            TfStef Stef
            Votes:
            28 Vote for this issue
            Watchers:
            19 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: