mojira.dev
MC-104650

Mobs use path of riding entity with fixed and pretty high speed

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

  1. Summon for example a skeleton riding a spider

    /summon spider ~ ~ ~ {Passengers:[{id:"skeleton"}]}
  2. 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

Attachments

Comments 11

Why do you think this is a bug ?

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 ?

Can confirm in 20w48a.

Can confirm in 21w03a.

1 more comments

Can confirm in 21w06a.

Can confirm in 21w07a.

Can confirm in 1.16.5 and 21w08b.

Can confirm in 1.19.3

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

Camersauce

marcono1234

(Unassigned)

Confirmed

Mob behaviour

fast, passengers, path, riding, speed, spider-jockey

Minecraft 1.10.2, Minecraft 1.11.2, Minecraft 17w06a, Minecraft 1.13, Minecraft 1.13.1, ..., 21w08b, 1.19.3, 1.19.4 Pre-release 3, 1.21.3, 24w45a

Retrieved