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

Hoglins and Zoglins deal inconsistent directional knockback compared to other mobs

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Works As Intended
    • None
    • 1.20.6, 24w18a
    • None
    • Community Consensus
    • Mob behaviour
    • Low
    • Gameplay

      Hoglins and Zoglins can usually deal inconsistent knockback towards random directions, where sometimes they would knockback you either to the sides, launch you slightly to the air or push you back from their position. This is extremely noticeable when the mob has a high generic.attack_knockback attribute.

      Other similar mobs, like ravagers which also have some attack knockback, or iron golems which also deal vertical knockback attacks, don't have this issue, as both of them push the player in a consistent direction.

      How to reproduce

      1. Summon a zoglin, apply a high slowness effect to it.
      2. Set the attack_knockback of the zoglin to 5.0.
        /attribute @e[type=zoglin,limit=1] minecraft:generic.attack_knockback base set 5
        
      3. Switch to survival and get closer to the zoglin (or teleport, so player movement isn't a factor).
      4. Get knocked back by the zoglin and retry a few times.
      5. Notice how the knockback dealt by the zoglin doesn't push you consistently to the same direction, and can sometimes deal backwards knockback.

      Expected result

      Hoglins and zoglins would deal the same knockback most of the time, similar to how Iron golems do, as both mob types deal vertical knockback.

      Observed result

      Hoglins and zoglins deal inconsistent knockback, sometimes with varying height and direction.

        1. 2024-05-04_18.50.58.png
          2024-05-04_18.50.58.png
          282 kB
        2. 2024-05-04_18.51.29.png
          2024-05-04_18.51.29.png
          260 kB
        3. 2024-05-04_18.57.43.png
          2024-05-04_18.57.43.png
          245 kB
        4. -Bug-.mp4
          3.58 MB

            Unassigned Unassigned
            Chavamix700 syarumi
            Votes:
            1 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: