mojira.dev
MC-90598

Sneaking while swimming or gliding changes eye height to outside the hitbox

When you press sneak while flying with the Elytra wings in F5 mode, the camera angle changes. This is due to the eye level changes (you can see this with hitboxes shown). The eye level changes to the sneaking height's eye level (one block up), above the hitbox of the model and the camera adjust to the eye level.

Related issues

MC-90654 Incorrect eye placement with elytra when sneaking and flying MC-90822 A player with Elytra's camera position changes when sneaking while in midair MC-90891 Incorrect player position while gliding and sneaking MC-90959 Shifting while gliding changes hitbox MC-91365 Eye level changes when sneaking while using Elytras MC-92339 Elytra causing player (and Elytra) to go down a block if shift is pressed while flying MC-92474 bug MC-93301 Elytra hitbox is one block too high MC-96381 Glitch through Block MC-96444 Flying into blocks using the elytra item will cause you to go into the block MC-97046 Elytra causes suffocation in walls MC-97859 Elytra Crouching MC-99550 Pressing shift while gliding moves the player model MC-112018 Shifting With an Elytra MC-124103 Crouching while flying with Elytra

Attachments

Comments

migrated
[media][media]
migrated

yes, the player's position in flight equipped with elytra is different from that snapshot. normally the position is lower.

migrated

Also, the following occurs in 1st person:
When not sneaking, the player will land when the camera is 1 block above the ground
When sneaking, the player will land when the camera is 2 blocks above the ground

migrated

This happens to me, I also use F3+B to show hitboxes.

migrated

Confirmed for 15w43a

migrated

Confirmed for 15w43c.

migrated

Confirmed for 15w44b

migrated

Confirmed for 15w47c

marcono1234

Please clean up this report

This report currently contains 2 bugs:

  1. Eye level changes when you sneak while flying with an elytra (best described by MC-91365):

  2. Stopping to sneak enlarges your hitbox making you able to clip through blocks above you. The main report for this is MC-90594

marcono1234

Please remove the wrong duplicates

migrated

Done, thanks.

Irbis

1.9 pre 4 is affected. this can cause suffocation damage when flying in small gaps/near ceiling.

FaRo1

Confirmed for 1.9.4.

migrated

Is this still an issue in the latest snapshot 16w44a? If so please update the affected versions.

This is an automated comment on any open or reopened issue with out-of-date affected versions.

migrated

Confirmed for 17w16b.

migrated

The following is based on a decompiled version of Minecraft 1.11 using MCP 9.35.

The reason for this is that the method net.minecraft.entity.player.EntityPlayer.getEyeHeight() returns 1.54F when the player is sneaking, whether the player is flying or not.

public float getEyeHeight() {
    float f = 1.62F;

    if (this.isPlayerSleeping()) {
        f = 0.2F;
    } else if (!this.isSneaking() && this.height != 1.65F) {
        if (this.isElytraFlying() || this.height == 0.6F) {
            f = 0.4F;
        }
    } else {
        f -= 0.08F;
    }

    return f;
}
bemoty

Can confirm for MC 1.12.1.

migrated

Confirmed to be fixed in 1.13-pre7

FaRo1

Confirmed as well.

violine1101

Marked as fixed for 1.13-pre9 because older versions aren't selectable anymore.

migrated

Jens Bergensten

Confirmed

Minecraft 15w42a, Minecraft 15w43a, Minecraft 15w43b, Minecraft 15w43c, Minecraft 15w44b, ..., Minecraft 17w16b, Minecraft 1.12 Pre-Release 6, Minecraft 1.12.1, Minecraft 1.12.2, Minecraft 18w16a

Minecraft 1.13-pre9

Retrieved