The bug
Ridden mobs use the path of the riding entity with a fixed and rather high speed which might be twice as high as its own speed. The expected behavior might be that the mob uses its speed instead.
This can be seen for example with spider jockeys or skeleton traps.
How to reproduce
Summon for example a skeleton riding a spider
/summon spider ~ ~ ~ {Passengers:[{id:"skeleton"}]}
Switch to Survival mode
→ You will see that the spider chases you faster than normal
Code analysis
Based on 1.11.2 decompiled using MCP 9.35 rc1
The method net.minecraft.entity.EntityLiving.updateEntityActionState()
sets the path of the ridden entity to the path of the riding entity with a fixed speed of 1.5
.
Linked issues
is blocked by 1
is duplicated by 1
Attachments
Comments 11
Because the spider isn't supposed to be able to walk this fast?
I'm not sure about this, but I think it should at least be kept open for Mojang to decide.
(Also, I didn't even know skeletons were faster than spiders.)
Possibly fixed, but maybe just buried under new issue MC-153840 ?
The title and "Code analysis" are outdated. The speed is not fixed now.
The spider jockey is still faster than normal spiders. It is because the melee attack speed modifier of the skeleton's AI is used, since the skeleton controls the spider.
Another example in current version is that: spiders ridden by chicken, sheep, or llama have different speed if the player is holding seeds, wheat, or hay block, respectively.
So the description of this issue need to be updated.
This issue is incorrectly marked as "is blocked by MC-153840", because it doesn't exist at all, see my comment on MC-153840
Why do you think this is a bug ?