mojira.dev
MC-44560

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

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.

Linked issues

MC-273704 Cannot go down ladders with water above the ladder Resolved MC-238248 Player jumps when exiting water stream. Resolved MC-199284 strange up and down movement in water Resolved MC-164376 Auto jump on water even if disabled Resolved MC-128437 Auto jumping when disabled under certain condition Resolved

Attachments

Comments 51

Another example of the water-edge auto-jumping by walking between stream edges. Again, no Jump button was pressed this entire video, only WASD.

Is this still a concern in the current Minecraft version 14w10c / Launcher version 1.3.10 or later? If so, please update the affected versions in order to best aid Mojang ensuring bugs are still valid in the latest releases/pre-releases.

I will try to reproduce on 14w10c but I experienced the same behavior on 1.7.5 the other day while working with water streams. Will try to create a repro.

Bug reproduced on 1.7.5 creative mode.
Video demonstration:
http://www.youtube.com/watch?v=R_T1occhy9g

The "jumps" at the water edge are performed without pressing Spacebar.

Is this still a concern in the current Minecraft version 14w21b / Launcher version 1.4.4 or later? If so, please update the affected versions in order to best aid Mojang ensuring bugs are still valid in the latest releases/pre-releases.

41 more comments

This also seems to affect lava. At least, I think it is this issue but it might also be MC-8959.

Can confirm in 1.19.

Can confirm in 1.19.2.

Can confirm in 1.19.4

As a character, I have the same bug sometimes.
Last time it happened was:

https://www.youtube.com/watch?v=PB7jc4UcWKs
in this video, I use only mouse and forward key (W), and the jump key 1 time to go back to mossy carpet to repeat the bug once again.
Minecraft 1 20 Pre release 2 - Vanilla server (multiplayer) 

Use only mouse and forward key (W), while walking in water with slab on lower half, and a bloc in the way = auto jumping.
https://www.youtube.com/watch?v=w7Muz_TWg 

Boris Aranovich

(Unassigned)

Confirmed

Platform

Normal

Entities, Player

jump, push, water

Minecraft 14w02c, Minecraft 1.7.5, Minecraft 1.7.9, Minecraft 14w20b, Minecraft 14w21a, ..., 22w43a, 1.19.4, 1.20.1, 1.20.4, 1.21

Retrieved