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

When pushed to water or lava edge, entities jump by themselves

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • Minecraft 14w02c, Minecraft 1.7.5, Minecraft 1.7.9, Minecraft 14w20b, Minecraft 14w21a, Minecraft 14w21b, Minecraft 14w29b, Minecraft 1.8, Minecraft 1.8.1-pre3, Minecraft 1.8.1, Minecraft 15w42a, Minecraft 1.8.9, Minecraft 15w51b, Minecraft 16w03a, Minecraft 16w06a, Minecraft 16w07b, Minecraft 1.9 Pre-Release 1, Minecraft 16w15a, Minecraft 1.9.3 Pre-Release 3, Minecraft 1.9.4, Minecraft 1.10.2, Minecraft 16w43a, Minecraft 1.12, Minecraft 17w31a, Minecraft 1.12.1 Pre-Release 1, Minecraft 1.12.1, Minecraft 1.12.2 Pre-Release 1, Minecraft 1.12.2 Pre-Release 2, Minecraft 1.12.2, Minecraft 17w43a, Minecraft 17w43b, Minecraft 17w45a, Minecraft 17w48a, Minecraft 17w50a, Minecraft 18w01a, Minecraft 18w03b, Minecraft 18w06a, Minecraft 18w09a, Minecraft 18w10d, Minecraft 18w14b, Minecraft 1.13-pre3, Minecraft 1.13-pre6, Minecraft 1.13-pre7, Minecraft 1.13-pre10, Minecraft 1.13, Minecraft 18w30b, Minecraft 18w31a, Minecraft 1.13.1, 1.14.4, 1.15 Pre-release 6, 1.16.1, 1.16.2, 1.16.4, 20w48a, 20w51a, 21w03a, 21w05b, 21w07a, 1.17, 1.17.1, 21w39a, 1.18.1, 22w12a, 1.19, 1.19.1, 1.19.2, 22w43a, 1.19.4, 1.20.1, 1.20.4, 1.21
    • Confirmed
    • Entities, Player
    • Normal
    • Platform

      In a new Survival map on the latest snapshot (14w02c), when reached the edge of a flowing water stream, my character jumped up a block without any user interaction.

      I attached a short clip of this behavior. I never pressed the jump key in this video, the only keys I used were the WASD to move to the sides. Notice that once I'm pushed by the water to a block and mine that block, I jump up.

      This affects all entities that extend EntityLivingBase, most notably players and armor stands.

      Code analysis

      Based on 1.11 decompiled using MCP 9.35 rc1

      Method: net.minecraft.entity.EntityLivingBase.moveEntityWithHeading(float, float)
      Code piece:

      if (this.isCollidedHorizontally && this.isOffsetPositionInLiquid(this.motionX, this.motionY + 0.6000000238418579D - this.posY + d0, this.motionZ))
      {
          this.motionY = 0.30000001192092896D;
      }
      

      Looks intended as it explicitly does this.

        1. 1.17.1-rc2_singleplayer.mp4
          5.04 MB
        2. 2016-01-24_19.12.07.png
          2016-01-24_19.12.07.png
          27 kB
        3. 2018-07-28_18.41.06.png
          2018-07-28_18.41.06.png
          521 kB
        4. 2018-07-28_18.44.56.png
          2018-07-28_18.44.56.png
          326 kB
        5. bug description.png
          bug description.png
          640 kB
        6. MC-44560_lava.mp4
          8.17 MB
        7. mc-water-jump-1.avi
          6.05 MB
        8. mc-water-jump-2.avi
          4.79 MB
        9. Minecraft_ 1.16.1 - Multiplayer (LAN) 2020-07-28 12-50-41.mp4
          4.86 MB

            Unassigned Unassigned
            nomaed Boris Aranovich
            Votes:
            59 Vote for this issue
            Watchers:
            29 Start watching this issue

              Created:
              Updated:
              CHK: