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

Ocelots and wolves jump off cliffs while chasing other mobs

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • Minecraft 1.10.2, Minecraft 16w39c, Minecraft 16w42a, Minecraft 1.13.1, Minecraft 1.13.2-pre2, 20w46a, 1.16.5, 21w05b, 21w06a, 21w08b, 21w16a, 1.17, 1.17.1, 21w40a, 1.18, 1.18.2, 1.19, 22w24a, 1.19.2, 1.20.2, 1.20.4, 23w51b, 24w09a, 24w10a, 1.20.5, 1.20.6, 1.21
    • Confirmed
    • Mob behaviour

      The bug

      When ocelots chase chickens or when wolves chase skeletons or sheep they jump towards their target without testing if they can land where they are jumping to.

      Reproduction steps

      1. Build the setup as shown in the attachment below: setup.png (2 blocks with 3 blocks of air in between)
      2. Summon a chicken or sheep on the diamond block, and an ocelot or a wolf on the emerald block.
        Sometimes the ocelot or wolf jumps into the gap between the blocks

      The reason

      The following is based on a decompiled version of Minecraft 1.10 using MCP 9.30.

      This happens probably because the method net.minecraft.entity.ai.EntityAILeapAtTarget.shouldExecute() does not test if at the position where the mob is supposed to leap to is a block.

        1. MC-108313.mp4
          3.22 MB
        2. MC-108313.png
          MC-108313.png
          1.14 MB
        3. setup.png
          setup.png
          512 kB

            Unassigned Unassigned
            marcono1234 Marcono1234
            Votes:
            11 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              CHK: