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

No knockback on y-axis when using the NoGravity tag

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Resolution: Unresolved
    • Affects Version/s: Minecraft 16w21a, Minecraft 16w21b, Minecraft 1.10 Pre-Release 1, Minecraft 1.10, Minecraft 1.10.2, Minecraft 16w35a, Minecraft 16w36a, Minecraft 1.11, Minecraft 1.11.2, Minecraft 17w06a, Minecraft 17w13a, Minecraft 17w13b, Minecraft 17w16a, Minecraft 17w16b, Minecraft 17w17a, Minecraft 17w17b, Minecraft 1.12.2, Minecraft 18w11a, Minecraft 18w14a, Minecraft 18w14b, Minecraft 18w16a, Minecraft 18w22a, Minecraft 1.13-pre1, Minecraft 1.13-pre2, Minecraft 1.13.2, Minecraft 19w12b, Minecraft 19w13b
    • Fix Version/s: None
    • Confirmation Status:
      Confirmed
    • Category:
      (Unassigned)

      Description

      The bug

      When you punch a mob from below, it doesn't receive any knockback upwards even if it has the NoGravity tag. Same applies for knockback downwards if you're punching from above.
      Expected behavior would be that the mob should be moving into the direction you are punching as it is getting pushed away from the player. Instead, the mob only moves on the x- and z-axis and it isn't even considered whether you're punching from above or from below which is strange when you're in air.

      How to reproduce

      1. Set up a command block with the command
        execute as @e run data merge entity @s {NoGravity:1b}
      2. Set that command block into the repeat-mode and apply a redstone signal to it
      3. Spawn some mobs
      4. Punch them so they are in the air or spawn them above air
      5. Now try to punch them from above or below
        → You will notice that it isn't even considered in which direction you are punching and the mobs only move on the x- and z-axis

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                Block28 Block twenty-eight
              • Votes:
                6 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  CHK: