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

Certain mobs do not update their pathfinding after being affected by Knockback

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Resolution: Unresolved
    • Affects Version/s: Minecraft 1.14
    • Fix Version/s: None
    • Labels:
      None
    • Confirmation Status:
      Confirmed
    • Category:
      (Unassigned)

      Description

      When cows, sheep and pigs are hit by a weapon enchanted with Knockback while they are walking to a specific location, they do not update their pathfinding. They will continue to move to the location they were originally pathfinding towards.

      Potentially other mobs are affected as well.

      This is easier to see if the mobs are hit by a weapon enchanted with a high level of Knockback. This was reproduced easily with Knockback 20. This level of Knockback will knock most mobs about 50 blocks.

      To reproduce:

      Create a superflat world in creative mode.
      Enchant a stick with Knockback 20, command is:

      /give @p minecraft:stick{Enchantments:[{id:"minecraft:knockback",lvl:20s}]}

      Find or spawn a cow, sheep or pig.
      Wait until the mob is walking on its own to a new location.
      Hit it with the Knockback stick. -> The mob will run towards the player, towards where they were originally going. They will run in a straight line for 50 blocks or so. It won't happen all the time but will happen fairly often.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              bdm68 bdm68
            • Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                CHK: