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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • Minecraft 1.10.2, Minecraft 1.11.2, Minecraft 17w06a, Minecraft 1.13, Minecraft 1.13.1, 20w48a, 21w03a, 1.16.5, 21w05b, 21w06a, 21w07a, 21w08b, 1.19.3, 1.19.4 Pre-release 3, 1.21.3, 24w45a
    • Confirmed
    • Mob behaviour

      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.

            Unassigned Unassigned
            marcono1234 Marcono1234
            Votes:
            10 Vote for this issue
            Watchers:
            12 Start watching this issue

              Created:
              Updated:
              CHK: