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

Spiders & Wolves deal no damage as they're leaping


    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • Minecraft 14w06b, Minecraft 14w07a, Minecraft 14w08a, Minecraft 14w10b, Minecraft 14w10c, Minecraft 14w11b, Minecraft 14w17a, Minecraft 14w18a, Minecraft 14w18b, Minecraft 14w19a, Minecraft 14w20b, Minecraft 14w21b, Minecraft 14w29b, Minecraft 14w31a, Minecraft 14w32a, Minecraft 14w34d, Minecraft 1.8-pre1, Minecraft 1.8-pre2, Minecraft 1.8-pre3, Minecraft 1.8, Minecraft 1.8.1-pre1, Minecraft 1.8.1-pre4, Minecraft 1.8.2-pre5, Minecraft 15w35b, Minecraft 15w45a, Minecraft 1.11.2, Minecraft 17w13b, Minecraft 1.12.2, Minecraft 18w03b, Minecraft 18w07c, Minecraft 18w08a, Minecraft 18w09a, Minecraft 18w10c, Minecraft 18w10d, Minecraft 18w11a, Minecraft 18w14a, Minecraft 18w14b, Minecraft 18w15a, Minecraft 18w16a, Minecraft 18w19b, Minecraft 18w21a, Minecraft 1.13-pre1, Minecraft 1.13-pre2, Minecraft 1.13-pre5, Minecraft 1.13-pre10, Minecraft 1.13, Minecraft 18w30b, Minecraft 18w31a, Minecraft 18w32a, Minecraft 18w33a, Minecraft 1.13.1-pre1, Minecraft 1.13.1, Minecraft 1.13.2-pre1, Minecraft 1.13.2, Minecraft 18w43c, Minecraft 18w44a, Minecraft 19w02a, Minecraft 19w03c, Minecraft 19w04a, Minecraft 19w04b, Minecraft 19w05a, Minecraft 19w06a, Minecraft 19w07a, Minecraft 19w08a, Minecraft 19w08b, Minecraft 19w09a, Minecraft 19w11a, Minecraft 19w11b, Minecraft 19w12b, Minecraft 19w13a, Minecraft 1.14 Pre-Release 2, Minecraft 1.14 Pre-Release 3, Minecraft 1.14 Pre-Release 4, Minecraft 1.14 Pre-Release 5, Minecraft 1.14, Minecraft 1.14.1 Pre-Release 1, Minecraft 1.14.1, Minecraft 1.14.2 Pre-Release 1, Minecraft 1.14.3, 1.14.4, 19w34a, 19w35a, 19w37a, 19w39a, 19w40a, 19w42a, 1.15 Pre-release 1, 1.15.2, 20w09a, 20w10a, 20w11a, 20w12a, 20w18a, 20w19a, 1.16 Pre-release 3, 1.16.3 Release Candidate 1, 1.16.3, 1.16.4, 20w46a, 20w48a, 20w51a, 21w05b, 21w06a, 21w10a, 21w11a, 21w13a, 21w15a, 21w17a, 21w18a, 1.17, 1.18 Pre-release 1, 22w05a, 1.18.2, 22w13a, 22w18a, 22w19a, 1.19 Pre-release 1, 1.19 Pre-release 2, 1.19 Pre-release 3, 1.19 Pre-release 4, 1.19 Pre-release 5, 1.19, 1.19.2, 1.19.3 Pre-release 2, 1.19.3, 23w03a, 23w04a, 1.19.4, 1.20 Pre-release 1, 1.20.1, 23w33a, 1.20.2, 1.20.3 Pre-Release 4, 1.20.4, 24w05b, 24w09a, 24w10a, 1.20.5 Pre-Release 1
    • Confirmed
    • Mob behaviour
    • Low
    • Gameplay

      The bug

      When a spider/wolf leaps at you, it deals no damage as it's in the air, but when it lands it deals damage. I've also noticed as they're leaping their heads point completely straight, as opposed to them still looking at you, similar to how creepers stare straight as they explode. Doesn't affect spiders under version 14w06a when it got the new AI, but wolves have always done it.

      This actively affects both mobs ability to land hits in combat.

      Note: This bug does not differ with the mob attack changes with 23w33a

      How to reproduce

      1. Spawn spider/wolf
      2. Walk up to it, aggro it, and wait until it pounces
      3. Notice its head point straight forward while it pounces and it deals no damage while it's in midair

      In the pictures, the mobs are touching me as they're leaping, but deal no damage until they hit the ground. Of course I took some damage waiting for them to leap, but as they jumped no damage was dealt.


      Potential Fix from Chumbanotz:

      "Spiders and Wolves use the class LeapAtTargetGoal which handles the leaping at their target. This class calls Goal::setFlags in its constructor with the values of Goal.Flag.MOVE and Goal.Flag.LOOK. These flags prevent other AI goals with the same flags from executing. The MeleeAttackGoal handles the melee attack and has the same goal flags set. To fix this, remove the call to Goal::setFlags from the LeapAtTargetGoal to allow it to run at the same time as MeleeAttackGoal."


        1. 2014-02-19_04.48.36.png
          411 kB
        2. 2014-02-19_04.49.07.png
          498 kB
        3. 2014-02-19_04.50.22.png
          429 kB
        4. 2014-02-19_04.50.57.png
          565 kB
        5. 2014-02-19_04.51.23.png
          423 kB
        6. 2014-02-19_13.15.18.png
          113 kB

            Unassigned Unassigned
            DiamondDragon721 Orbic
            29 Vote for this issue
            11 Start watching this issue