[MC-10657] Player entering nether portal while sneaking stuck in 'partial sneak' Created: 01/Mar/13  Updated: 22/Mar/20  Resolved: 04/Jun/19

Status: Resolved
Project: Minecraft: Java Edition
Component/s: None
Affects Version/s: Snapshot 13w09c, Minecraft 1.8, Minecraft 1.8.1, Minecraft 1.8.3, Minecraft 1.8.4, Minecraft 1.8.8, Minecraft 15w32c, Minecraft 15w36d, Minecraft 15w38b, Minecraft 15w45a, Minecraft 1.11.2, Minecraft 1.13.1, Minecraft 1.13.2, Minecraft 19w12b, Minecraft 19w13b, Minecraft 19w14a, Minecraft 19w14b
Fix Version/s: Minecraft 1.14.2

Type: Bug
Reporter: Miles Brouillette Assignee: Unassigned
Resolution: Fixed Votes: 12
Labels: None

Issue Links:
Duplicate
is duplicated by MC-78912 Player entering Nether Portal while s... Resolved
is duplicated by MC-85505 Sneaking when going through the nethe... Resolved
is duplicated by MC-116678 Sneak in nether portal bug Resolved
is duplicated by MC-118907 Strange nether portal interaction Resolved
is duplicated by MC-147522 Sneaking through a nether portal keep... Resolved
Relates
CHK:
Confirmation Status: Confirmed
Category:
(Unassigned)

 Description   

The bug

If a player passes through a nether portal while in sneak mode, that player retains some properties of sneaking after coming out on the other side.

  • Cannot open chests, flip levers, etc.
  • Visually appears crouched to other players (including nameplate being hidden by opaque blocks)
  • Moves at full normal speed, despite appearing crouched
  • Falls off of block ledges, despite appearing crouched
  • Able to break and place blocks normally

Effect remains until player presses/releases sneak key.

Video of the behavior:
https://youtu.be/BUkyLzd0c1I


Code analysis by quadraxis

Minecraft.setDimensionAndSpawnPlayer creates a new player entity, mostly losing the field values from the old one.
This causes the client to "forget" that the player was previously sneaking, and so it will not send a status update packet to the server as it believes that the sneak status is unchanged, causing the issue.

This issue can be fixed by changing setDimensionAndSpawnPlayer to copy the values used to determine when status update packets are sent (inside EntityPlayerSP.onUpdateWalkingPlayer) across to the newly-created player.



 Comments   
Comment by BillyGalbreath [ 31/Aug/19 ]

Confirmed is an issue again in 1.14.4

Comment by Yottazoid [ 22/Jul/19 ]

This issue is occurring for me again in 1.14.4.

Comment by [Helper] Johnibur [ 18/Apr/19 ]

Fixed in 1.14-pre5.

Comment by [Helper] Johnibur [ 15/Apr/19 ]

Can confirm for 1.14-pre2. With the change in sneaking, this now implies the player will be in auto-sneaking pose until the sneaking button is pressed again.

Steps to reproduce

  1. Go to a Nether portal while holding sneak button.
  2. Release the button once you are waiting on the loading terrain screen.
  3. You will be put on auto-sneak on the other side until you press sneak again.
Comment by Kraif [ 25/Aug/18 ]

Couldn't reproduce for 1.13.1.

Comment by Ben Staddon [ 11/Jun/18 ]

Minecraft.setDimensionAndSpawnPlayer creates a new player entity, mostly losing the field values from the old one.
This causes the client to "forget" that the player was previously sneaking, and so it will not send a status update packet to the server as it believes that the sneak status is unchanged, causing the issue.

This issue can be fixed by changing setDimensionAndSpawnPlayer to copy the values used to determine when status update packets are sent (inside EntityPlayerSP.onUpdateWalkingPlayer) across to the newly-created player.

Comment by user-f2760 (Inactive) [ 13/Mar/16 ]

The enviroment is supposed to contain pc details.

Comment by KebabDavidsHos [ 08/Nov/15 ]

I tested this in 15w45a in singleplayer and experienced the issue, I couldn't open chests etc. As I was in singleplayer I couldn't test wether other players saw me as crouching or not.

Comment by user-f2760 (Inactive) [ 07/Nov/15 ]

is this still an issue in 15w45a?

Comment by John Trainer [ 20/Sep/15 ]

Still persists in 15w38b

Comment by John Trainer [ 09/Sep/15 ]

Still reproducible in 15w36d.

Comment by KebabDavidsHos [ 19/Apr/15 ]

Problem persists in Minecraft version 1.8.4 as well. This was tested on a Realms survival world.

Comment by John Trainer [ 21/Mar/15 ]

Problem persists in 1.8.3, as described in my accidental duplicate issue MC-78912. My details from that issue (which should be closed and linked to this one as a duplicate):

If a player passes through a Nether Portal while in sneak mode, that player retains some properties of sneaking after coming out on the other side.

  • Cannot open chests, flip levers, etc.
  • Visually appears crouched to other players (including nameplate being hidden by opaque blocks)
  • Moves at full normal speed, despite appearing crouched
  • Falls off of block ledges, despite appearing crouched
  • Able to break and place blocks normally

Effect remains until player presses/releases sneak key.

Tested on a Realms Survival world in 1.8.3.

Comment by Qlimax Mito [ 12/Dec/14 ]

Confirmed for 1.8.1.
I'd like to mention this is more than just a graphical issue and you can get out of this glitch at any time by pressing the sneak button.

To my understanding the server keeps track of your sneaking state in order to show the animation to the other players online and, more importantly, decided what to do when you right click on an interactive block (i.e. place block against a crafting table or open its interface).
I believe this bug happens because during the world loading screen controls are frozen, which means the no-longer-sneaking notification is never sent to the server, or something like that.

Here is a video showing not-graphical part of the issue: http://youtu.be/RudTOG2reic

Personal side note: it would be nice if this was key binding dependent, not sneak dependent.

Comment by [Mod] redstonehelper [ 14/Sep/14 ]

1.8, this is an issue again: https://www.youtube.com/watch?v=wbSt5ntHgOI

Also verified locally by opening to LAN. Please re-open.

Comment by Tails [ 07/Apr/13 ]

No answer on querry, assuming no longer an issue.

Comment by Kumasasa [ 18/Mar/13 ]

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

Generated at Sun Jan 12 12:25:06 UTC 2025 using Jira 9.12.2#9120002-sha1:301bf498dd45d800842af0b84230f1bb58606c13.