Uploaded image for project: 'Minecraft (Bedrock codebase)'
  1. Minecraft (Bedrock codebase)
  2. MCPE-57085

Knockback enchantment doesn't apply in PVP.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • 1.16.1
    • 1.16.0.58 Beta, 1.14.20 Hotfix, 1.13.1, 1.14.1 Hotfix, 1.14.0, 1.14.30 Hotfix
    • None
    • Confirmed
    • Windows
    • 291716

      Problem: Knockback enchantment doesn't knock other players +3 / +6 blocks further back, only mobs. (Both passive and hostile.)

       

      What I expected: Hitting a player with an item enchanted with Knockback should move a player further back than hitting them with a normal item.

      Steps to reproduce:

      1. In creative mode give yourself two swords, an anvil, and a Knockback book. Enchant one sword with knockback.
      2. Spawn in a hostile mob. Hit with normal sword and with knockback sword. Observe that Knockback works on hostile mobs.
      3. Spawn in a passive mob. Hit with normal sword and with knockback sword. Observe that Knockback works on passive mobs.
      4. Invite a second player into the world. Ensure they are not in Creative mode and that /gamerule PVP is true. Hit with normal sword and with knockback sword. Second player will travel the exact same distance regardless of which sword you use.

      Additional testing:

      This seems to be a problem with the Knockback enchantment interacting with players regardless of what item the enchantment is on. I used an editor to enchant a stick with Knockback II and it behaves how I expect- the enchanted stick sends mobs 6 blocks further than a regular stick does. Players still travel the same distance when hit by a regular stick and a Knockback II stick. This scales with enchantment level- you can use the editor to give the stick Knockback 999 which immediately sent the villager I hit out of the 80 chunk render distance, but players still travel the ~3 blocks when hit by the Knockback 999 stick.

            engin33rguy engin33rguy
            Votes:
            25 Vote for this issue
            Watchers:
            15 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: