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.
Linked issues
is duplicated by 15
Attachments
Comments 19
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
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;
}
yes, the player's position in flight equipped with elytra is different from that snapshot. normally the position is lower.