Mojira Archive
MC-108313

Ocelots and wolves jump off cliffs while chasing other mobs

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.

Unresolved

Marcono1234

2016-10-06, 03:35 AM

2024-08-03, 10:24 PM

11

8

Confirmed

Mob behaviour

ocelot, wolf

Minecraft 1.10.2 - 1.21Minecraft 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

-