The bug
You can stop sneaking even when there isn't space for your head when standing up.
Affected situations
Entities with solid collision box
You can still stop sneaking if there is an entity with solid collision box, like a shulker or boat above you.
/summon armor_stand ~1 ~0.2 ~ {NoGravity:1b,Passengers:[{id:"shulker",NoAI:1b}]}
/summon armor_stand ~1 ~0.2 ~ {NoGravity:1b,Passengers:[{id:"boat"}]}
Player model for blocks
This bug was partwise fixed for blocks by not enlarging the hitbox if there is no space. The problem is that the player model stops sneaking anyways.
Related issues
is duplicated by
testing discovered
Attachments
Comments


Tried it and it worked even with normal Levitation I, through a roof two blocks thick.

Caused by the player's hitbox being lower when sneaking.

Confirmed for 15w45a

Also affects flying.

@@unknown Flying=gliding

Can confirm in 15w47c
1. Gamemode 1
2. Fly against the ceiling
3. Keep pressing spacebar and press shift
4. Let go of shift (Make sure you did not stop pressing spacebar) and glitch trough ceiling.
Also works for survival mode on ladders with pressing ''W'' Instead of space
No levetation is needed

Can somebody explain why this is Works as Intended?

This shouldn't be Works as Intended, this could be a map breaking bug. I'm currently making an adventure map where there is levitation parkour, but the player can easily get out of the room with this.

Exactly, it can break adventure maps and it can be exploited on normal survival, especially multiplayer. This should not be a Works as Intended.

Affects 15w50a
Wait?! Works as intended?
Well... We have a new way to get to the top of the nether, now we need to know how to get back down without dying. Don't forget your obsidian and flint and steel!

@@unknown Hello... Can you hear me... I was wondering why this issue was marked as Works As Intended...

This is not a discussion forum. This ticket has been marked for review, there is no need to keep asking.

I'm not sure if the workers know this, but I believe the reason why you can do this now, because in the snapshots, sneaking has actually changed the player's hitbox, moving it slightly down when shifting, which makes sense, but moves it higher when standing. So when you're beneath a block while flying up or jumping up, shifting will make your hitbox a slight smaller, allowing the player to move up a little, but when standing up, your hitbox increases, allowing a small part of your hitbox to go inside the block, allowing you to phase through it.

Finally, thank you! @William Pai, that's exactly the reason. Maybe disable the ability to unsneak when hitbox would normally go through the block?

Cannot confirm fixed for 16w04a
With the provided setup the player takes suffocation damage
When the player has 3 layers of snow below him, he still stands up, only his hitbox is a little bit shorter

Cannot reproduce suffocation damage. Still considering it fixed.

"With the provided setup the player takes suffocation damage"
Confirmed for 16w04a
My setup: http://imgur.com/EDVPzCi
Just go up to the top of the ladder and spam ship while pressing w.

Hmm. Can you still glitch through ceilings?

No. But you do take suffocation damage.

Well, you are mashing your head into the ceiling.

However "When the player has 3 layers of snow below him, he still stands up, only his hitbox is a little bit shorter" is probably still a bug

most likely not, that's how @unknown decided to fix this, by just keeping the hitbox smaller until there's space for the full hitbox

But if it detects already that the hitbox cannot be larger why has the player then the default height?

So is this intended now or not?

The fix works fine for me

Wait wait wait, something important, please reopen this; In 1.9 pre-2, this is still fixed, however it's not fixed for the hitbox of shulkers!

@@unknown You mean if you have a shulker above your head?

Yes.

You're saying we are able to unsneak into shulkers?

I think the shukers are intended as it is (standing on top, sneaking and unsneaking), you kinda need to see shulkers as pistons in this case, they push you into the block.

@@unknown Yes
@@unknown, @unknown said it happens with a shulker above your head.
I added a demonstration video.

Still the same story, you should see them as a piston (the I pad refuses to load the mp4, so I can't watch it ATM), so the shulker just pushes itself into your head space

@@unknown That's not the problem. I used a shulker facing sideways, but you can still (always) unsneak into them, just like you could with blocks before that was fixed. I attached a lower-quality video.

@FVbico That still doesn't mean it shouldn't be fixed. Also, this is extra important, since you can only get levitation when there is a Shulker nearby.

now that I can finally view the mp4, I understand what you both mean, thanks

Confirmed for 1.9.4, just reproduced on a ladder with a block above.
Can confirm for MC 1.12.1.

Seems to be fixed? Can anyone confirm this?

No. I just tried to reproduce this for the first time: First I was pushed out. Then I stood more in the middle and was able to stand up and be inside the shulker and boat.

@unknown Oh yeah forgot the shulker thing haha

Affects 1.13-pre6

Affects 1.13-pre7

Affects full release of 1.13.1, relates to MC-129863

Affects 1.13.2, 18w47a and 18w47b. Currently blocks MC-129863.
[^Minecraft 1.9-pre2 =22_2_2016= 17_27_59 [PM].mp4]