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

Panicking entities that end up in locations relatively far from where they received damage, will sometimes choose to pathfind to the location of where they were damaged at

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • Minecraft 1.14, 1.16 Pre-release 3, 20w51a, 1.16.5, 1.19.4, 1.20.1
    • None
    • Confirmed
    • Mob behaviour

      The Bug:

      Panicking entities that end up in locations relatively far from where they received damage, will sometimes choose to pathfind to the location of where they were damaged at.

      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.

      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.

            Unassigned Unassigned
            bdm68 bdm68
            Votes:
            5 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              CHK: