-
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
- Build the setup as shown in the attachment below: setup.png (2 blocks with 3 blocks of air in between)
- 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.