mojira.dev
MC-97190

While gliding into water or lava, player continues gliding

The bug

While gliding into a body of water or lava, your player continues to glide instead of swim.

This means you can still use fireworks in order to accelerate and get out of the water or lava.
It also means that when you reach the surface of the water, it is impossible to get the player model back in upright position until you touch the surface of a block.

Code analysis by @unknown here.

Related issues

MC-97209 Elytra works in liquids MC-97400 Elyectra and swimming bug MC-97436 Elytra bug/glitch MC-97438 Elytra doesn't stop MC-97450 Elytra bug MC-97543 When you swim Elytra activate MC-97555 When pressing space with elytra in water, it opens the elytra and causes some pretty glitchy things. MC-97580 elytra MC-97598 Flying in water with elytra MC-97632 Opening Elytra While "Swimming" Will Burn Elytra's Durability MC-97641 wings look like swim animation in water MC-97670 elytra update MC-97874 Elytra acting abnormally MC-98099 Elytra "swimming" MC-98137 It is gliding in water ... MC-98159 elytra MC-99181 Elytra animation continues when gliding into water but movement doesn't MC-99350 Elytra stays open when landing in water MC-99385 Swimming With Elytra MC-99635 1 Block Tall Elytra Glitch MC-99796 When Swimming with an elytra and jumping player doesn't go back to normal position MC-100025 Elytra Glitch MC-100324 Player in the inventory rotated by 180 degrees when the sail is used the elytra. MC-101014 Elytra swimming MC-109413 Swimming breaks with elytra MC-110061 Elytra+Water=Bug MC-113190 Elytra MC-126522 Flying with Elytra into Water will keep Elytra animation! MC-129020 when i activate the elytra i go to the surface the drowned make us no damage MC-133261 When use elytra fly into the water and lookup the sky,Player look like use the old swimming action MC-133662 Can't get back to standing mode MC-134226 elytra into water MC-144074 Elytra in water is very weird and annoying MC-148036 When flying into the water with elytra, it keeps the player in elytra flying animation MC-172577 elytra durability in water MC-192983 Rockets can be used for a boost underwater if the player flies into the water using elytra. MC-196350 incorrect movement when landing in water with elytra and depth strider 3 boots MC-208072 Elytra breaks while flying off in the ocean and swimming while in it MC-208995 Elytra swimming bug MC-220639 elytra stays open in water. MC-223039 bug in water using elytra MC-234469 to feed with a cart MC-241925 Elytra is still active in water MC-260370 weird elytra interaction MC-263707 When flying into the water from the air with elytra, the flight status of the elytra is not canceled MC-265006 Elytra can be used in water MC-270056 Elytra - Activated when in water MC-277030 Elytra breaks when you enter water MC-277920 Elytra remains active in water MC-280059 Eliters work underwater

Attachments

Comments

migrated
[media][media][media][media][media][media][media][media]
[Mod]Les3awe

Can confirm.

migrated

Can confirm in 1.9pre-1

migrated

also in 1.9pre-2

migrated

Can confirm. also isn't fixed in Minecraft 1.9.1 pre release

Irbis

Important to mention that elytra is loosing durability while swimming like that.

[Mod]Les3awe

Confirmed for 1.9.1-pre1

migrated

Confirmed for 1.9.1-pre2

migrated

Not only is the model stuck, but the game still thinks you are flying and the elytra still gets damaged until you get out of water.

FaRo1

The flight also starts again when leaving the water to the side (waterfall) and sometimes there's weird movement between swimming and gliding when on walls or something like that. So the game partially still tries to glide.
Confirmed for 1.9.3-pre1.

migrated

I think It's cool, can we keep it but fix the durability problem?

migrated

Hari It's my opinion, I never said you had to agree.

FaRo1

Yes, it looks cool, but it's not just an animation, you actually have some elytra movement bits that have thrown me out of waterfalls multiple times. And if this becomes a feature, then more like those player model mods that add animations for fishing, flying in creative, jumping and so on, not just one single thing.

migrated

true, but I still think it looks cool.

migrated

can confirm for 16w20a and 16w21a. also @unknown is right; it's not just an amination; you actually don't update into the landing state.

[Mod]Les3awe

Confirmed for 1.10-pre1

migrated

After some more tests, it’s not that the player model does not update; you actually still are gliding (use a firework and you can fly out). And this seems like either intended or an oversight, as the code only checks for a block you stand on in order to land (and you can’t stand on liquids).

Edit: just realized the previous comments, not new info.

migrated

This still affects 18w16a.

migrated

I remember when this was used for "swimming", but now that we HAVE a swimming animation, this is useless.

migrated

Can confirm for 1.13-pre7!

[media]

migrated

It's a bug, so it's not meant to have a use

migrated

The following is based on a decompiled version of MC 1.12 using mcp940. Please link this in the description of the report.

In the method net.minecraft.entity.EntityLivingBase.isElytraFlying() are no checks for if the player is in water or lava.

public boolean isElytraFlying()
{
return this.getFlag(7);
}

To fix this you'll need to add a check or the player is in water or lava, as seen here;

public boolean isElytraFlying()
{
return isInWater() || isInLava() ? false : this.getFlag(7);
}

This should stop every property from an elytra when in water or lava.

Hope this helps 🙂

Jack McKalling

Confirmed for 1.13.2.

When you enter a body of water from an elytra flight, you will stay in some kind of semi-flight mode during swimming. You will be swimming, making swimming motions etc., but also flying. This is made apparent by two things;

-Your elytra wings remain in a spread out position as if you were flying, which would not be the case if you were swimming normally;

-When you reach the surface of the water, you will not be able to return to an upright position, as you would when swimming normally. You will stay horizontal and only unequiping the elytra or touching land will make you go upright.

 

If you touch land at any point, this semi-flight mode will finally be cancelled and everything returns to normal. But if you're just trying to surface from the water in the middle of an ocean, you will be forced in a horizontal position because there wouldn't be any land to cancel flight on.

Jack McKalling

One potential alternate solution to this (other than changing the above mentioned code), could be to cancel flight when swimming upwards using the Space key. This would make sense, because that key is used for swimming only, and when trying to swim, you shouldn't be flying anymore.

Jack McKalling

Confirmed for 18w48a

Jack McKalling

Confirmed for 18w48b

Jack McKalling

Confirmed for 18w49a

Jack McKalling

Confirmed for 18w50a

Jack McKalling

Confirmed for 19w02a

UserTeemu

In my opinion this should be a feature. Gliding while in water with a Riptide 3 trident, is really useful. Without gliding before taking off, it is a lot harder.

 

I think this is a useful bug/feature.

Jack McKalling

Just not being able to get back in upright position eventhough you're not flying anymore, that is an unintended side effect of this.

migrated

Can confirm that you cannot swim normally after gliding into water in 1.14.4. Very annoying.

Jack McKalling

Understandably it was marked as intended that the gliding continues when you get into water (so you cabn glide through). However the player model getting stuck in this position is now tracked in MC-162919

migrated

Tencryn
Cannot confirm in 20w17a. You swim at the same speed with and without elytra activated in my testings.

FaRo1

That is not what this report is about. And this report was also resolved as WAI, with the new swimming animation being the same as the gliding animation.

tildejustin

Leaving/surfacing is not like swimming because that is usually walking but is elytra, so it makes this weird fast bobbing and gliding action.

Jack McKalling

(Unassigned)

Confirmed

(Unassigned)

Minecraft 16w07a, Minecraft 1.9 Pre-Release 1, Minecraft 1.9 Pre-Release 2, Minecraft 1.9 Pre-Release 4, Minecraft 1.9, ..., 19w37a, 19w38b, 19w38a, 19w39a, 19w40a

Retrieved