The levitation effect doesn't work while entities are inside water
The Bug:
The levitation effect doesn't work while entities are inside water.
Steps to Reproduce:
- Enter some water and give yourself the levitation effect by using the command provided below.
/effect give @s minecraft:levitation
- Wait for a couple of seconds and observe if you levitate.
- Take note as to whether or not the levitation effect works while entities are inside water.
Observed Behavior:
The levitation effect doesn't work.
Expected Behavior:
The levitation effect would work.
Code Analysis:
Code analysis by [Mod] ampolive can be found in this comment.
Linked Issues
is duplicated by10
- Unresolved
[Mod] AvomaRuben Janse
- 31
- 16
- Confirmed
Normal
- Platform
- Entities
- levitation vanilla-parity
15w31a - 1.21.4
15w31a 15w31b 15w31c 15w32a 15w32b 15w32c 15w33b 15w33c 15w34a 15w34b 15w34c 15w34d 15w35a 15w35b 15w35c 15w35d 15w35e 15w36b 15w36c 15w36d 15w37a 15w38a 15w41b 15w42a 15w43b 15w43c 15w44a 15w44b 15w45a 15w46a 15w47a 15w47b 15w47c 1.16.3 1.16.4-pre1 1.16.4-pre2 1.16.4-rc1 1.16.4 20w45a 20w46a 20w48a 20w49a 20w51a 21w03a 1.16.5 21w05a 21w05b 21w06a 21w07a 21w08a 21w08b 21w10a 21w11a 21w13a 21w14a 21w15a 21w16a 21w17a 21w18a 1.17 1.17.1 21w40a 21w41a 21w43a 21w44a 1.18-pre7 1.18 1.18.1 22w03a 22w05a 22w06a 22w07a 1.18.2-rc1 1.18.2 22w12a 22w17a 22w18a 1.19 1.19.1 1.19.2 22w43a 1.19.3 1.19.4-pre1 1.19.4 1.20 1.20.1 1.20.2 23w45a 24w06a 24w11a 1.21 1.21.1 1.21.3 1.21.4
Created Issue:
Levitation effect doesn't work when player is in water
What I expected to happen was...:
When I gave myself the effect of levitation (by using the command) while I was in the water, it should have made my player go fly up in the air.What actually happened was...:
Instead, it did nothing.Steps to Reproduce:
1. Go into water (any gamemode)
2. Give yourself the effect of levitation
3. Notice how it doesn't make your player go fly up in the airEnvironment
Windows version: 8.1
is duplicated by
is duplicated by
Most likely intended, the water is pulling you down the same time you are trying to go up.
is duplicated by
A comment with security level 'global-moderators' was removed.
is duplicated by
is duplicated by
is duplicated by
is duplicated by
relates to
relates to
is duplicated by
relates to
is duplicated by
What I expected to happen was...:
When I gave myself the effect of levitation (by using the command) while I was in the water, it should have made my player go fly up in the air.What actually happened was...:
Instead, it did nothing.Steps to Reproduce:
1. Go into water (any gamemode)
2. Give yourself the effect of levitation
3. Notice how it doesn't make your player go fly up in the airThe bug
When I gave myself the effect of levitation (by using the command) while I was in the water, it should have made my player go fly up in the air. Instead, it did nothing.
Steps to Reproduce:
- Go into water (any gamemode)
- Give yourself the effect of levitation
Notice how it doesn't make your player go fly up in the air
Windows version: 10
is duplicated by
MC-212971
The bug
When I gave myself the effect of levitation (by using the command) while I was in the water, it should have made my player go fly up in the air. Instead, it did nothing.Steps to Reproduce:
- G
o into water (any gamemode)- Give yourself the effect of levitation
Notice how it doesn't make your player go fly up in the air
The Bug:
The levitation effect doesn't work whilst entities are inside water.
Steps to Reproduce:
- Enter some water.
- Give yourself the levitation effect.
/effect give @s minecraft:levitation
- Take note as to whether or not you levitate whilst standing in water.
Observed Behavior:
The levitation effect doesn't work whilst entities are inside water.
Expected Behavior:
The levitation effect would work whilst entities are inside water.
Levitation effect doesn't work when player is inwaterThe levitation effect doesn't work whilst entities are inside water
The Bug:
The levitation effect doesn't work whilst entities are inside water.
Steps to Reproduce:
- Enter some water.
Give yourself the levitation effect. /effect give @s minecraft:levitation
Take note as to whether or not youlevitate whilst standing in water.Observed Behavior:
The levitation effect doesn't work whilst entities are inside water.
Expected Behavior:
The levitation effect would work whilst entities are inside water.
The Bug:
The levitation effect doesn't work whilst entities are inside water.
Steps to Reproduce:
- Enter some water.
- Give yourself the levitation effect.
/effect give @s minecraft:levitation
- Wait for a couple of seconds.
- Take note as to whether or not the levitation effect works whilst entities are inside water.
Observed Behavior:
The levitation effect doesn't work whilst entities are inside water.
Expected Behavior:
The levitation effect would work whilst entities are inside water.
Thelevitation effect doesn't work whilst entities are inside waterThe Levitation effect doesn't work whilst entities are inside water
TheLevitation effect doesn't work whilst entities are inside water
The Bug:
The levitation effect doesn't work whilst entities are inside water.
Steps to Reproduce:
- Enter some water.
- Give yourself the levitation effect.
/effect give @s minecraft:levitation
- Wait for a couple of seconds.
- Take note as to whether or not the levitation effect works whilst entities are inside water.
Observed Behavior:
The levitation effect doesn't work whilst entities are inside water.
Expected Behavior:
The levitation effect would work whilst entities are inside water.
Code analysis
Code analysis by [Mod] ampolive can be found in this comment.
The Bug:
The levitation effect doesn't work whilst entities are inside water.
Steps to Reproduce:
- Enter some water.
- Give yourself the levitation effect.
/effect give @s minecraft:levitation
- Wait for a couple of seconds.
- Take note as to whether or not the levitation effect works whilst entities are inside water.
Observed Behavior:
The levitation effect doesn't work whilst entities are inside water.
Expected Behavior:
The levitation effect would work whilst entities are inside water.
Code
analysisCode analysis by [Mod] ampolive can be found in this comment.
The Bug:
The levitation effect doesn't work whilst entities are inside water.
Steps to Reproduce:
- Enter some water.
- Give yourself the levitation effect.
/effect give @s minecraft:levitation
- Wait for a couple of seconds.
- Take note as to whether or not the levitation effect works whilst entities are inside water.
Observed Behavior:
The levitation effect doesn't work whilst entities are inside water.
Expected Behavior:
The levitation effect would work whilst entities are inside water.
Code Analysis:
Code analysis by [Mod] ampolive can be found in this comment.
The Bug:
The levitation effect doesn't work whil
stentities are inside water.Steps to Reproduce:
- Enter some water.
- Give yourself the levitation effect.
/effect give @s minecraft:levitation
- Wait for a couple of seconds.
- Take note as to whether or not the levitation effect works whil
stentities are inside water.Observed Behavior:
The levitation effect doesn't work
whilst entities are inside water.Expected Behavior:
The levitation effect would work
whilst entities are inside water.Code Analysis:
Code analysis by [Mod] ampolive can be found in this comment.
The Bug:
The levitation effect doesn't work while entities are inside water.
Steps to Reproduce:
- Enter some water and give yourself the levitation effect by using the command provided below.
/effect give @s minecraft:levitation- Wait for a couple of seconds and observe if you levitate.
- Take note as to whether or not the levitation effect works while entities are inside water
Observed Behavior:
The levitation effect doesn't work.
Expected Behavior:
The levitation effect would work.
Code Analysis:
Code analysis by [Mod] ampolive can be found in this comment.
Levitation effect doesn't work whilstentities are inside waterThe levitation effect doesn't work while entities are inside water
The Bug:
The levitation effect doesn't work while entities are inside water.
Steps to Reproduce:
- Enter some water and give yourself the levitation effect by using the command provided below.
/effect give @s minecraft:levitation- Wait for a couple of seconds and observe if you levitate.
- Take note as to whether or not the levitation effect works while entities are inside water.
Observed Behavior:
The levitation effect doesn't work.
Expected Behavior:
The levitation effect would work.
Code Analysis:
Code analysis by [Mod] ampolive can be found in this comment.
Duplicate of MC-83369. Please search before creating new issues.
Dupe of MC-83369
Duplicate of MC-83369. Use the search function next time.
Thank you for your report!
We're tracking this issue as MC-83369, so this ticket is being resolved and linked as a duplicate.
That ticket has already been resolved as working as intended, which means this is not considered a bug and won't be fixed.
If you haven't already, you might like to make use of the search feature to see if the issue has already been reported.
Quick Links:
📓 Issue Guidelines – 💬 Community Support – 📧 Customer Support – ✍️ Feedback and Suggestions – 📖 Game Wiki
The Bug
The levitation effects pushes you up even if you are in water or lava. It did not happen in earlier versions, but it changed in version 1.13. This also relates to MC-83369 which is resolved as works as intended, which means that it is an intended feature that levitation doesn’t work in water or lava.
How to reproduce:
1. Go in water.
2. Give yourself levitation. You can use this command: /effect @s levitation 4 9 true
What actually happened: You will get pushed up.
What I expected: You are not affected by levitation.
Thank you for your report!
However, we are already tracking this issue, and this report is a Duplicate of MC-83369.
Please use the search function in the future to prevent duplicate reports.
Quick Links:
📓 Issue Guidelines – 💬 Community Support – 📧 Customer Support – ✍️ Feedback and Suggestions – 📖 Game Wiki


indeed
confirmed
I don't think it's supposed towork under water. It doesn't work when you are flying, and it doesn't work on squids. I don't think this is a bug.
Confirmed for 15w41b
Confirmed for 15w42a
Confirmed for 15w43b
Confirmed for 15w44a
Can confirm. For all those saying that the water is pulling you down
Normal gravity pulls you down too. By that logic. Levitation wouldt do anything at all
Confirmed for 15w45a
Confirmed for 15w47a and 15w47c
This issue needs to be reopend as of 1.13
456qwejos, this is resolved as Works As Intended.
This feature got broken in bedrock Edition in 1.13. The levitation effect now works in water and lava on bedrock Edition.
MCPE-76143I’d like to request ownership, since the original reporter hasn’t active since September 2016.
This should have the vanilla-parity label because this is fixed in Bedrock.
Can confirm in 1.17.
Can confirm in 1.17.1.
I am able to confirm this in 21w40a. The expected behavior would be that the levitation effect works whilst in water.
Code analysis (Mojang mappings, 22w18a): in LivingEntity#travel(Vec3), the effects of Levitation are only calculated if three conditionals are false: the first one is
which means that, for Levitation to take effect, the entity cannot be simultaneously in water, be affected by fluids, and be unable to stand on the fluid it is on. For nearly all entities inside water, the first conditional is already true, so the effects of Levitation are not calculated. Same thing happens with entities that are inside lava (except striders, because striders can stand on lava).
... public void travel(Vec3 $$0) { if (this.isEffectiveAi() || this.isControlledByLocalInstance()) { ... FluidState $$3 = this.level.getFluidState(this.blockPosition()); if (this.isInWater() && this.isAffectedByFluids() && !this.canStandOnFluid($$3)) { ... } else if (this.isInLava() && this.isAffectedByFluids() && !this.canStandOnFluid($$3)) { ... } else if (this.isFallFlying()) { ... } else { BlockPos $$25 = this.getBlockPosBelowThatAffectsMyMovement(); float $$26 = this.level.getBlockState($$25).getBlock().getFriction(); float $$27 = this.onGround ? $$26 * 0.91f : 0.91f; Vec3 $$28 = this.handleRelativeFrictionAndCalculateMovement($$0, $$26); double $$29 = $$28.y; if (this.hasEffect(MobEffects.LEVITATION)) { $$29 += (0.05 * (double)(this.getEffect(MobEffects.LEVITATION).getAmplifier() + 1) - $$28.y) * 0.2; this.resetFallDistance(); } else if (!this.level.isClientSide || this.level.hasChunkAt($$25)) { if (!this.isNoGravity()) { $$29 -= $$1; } } else { $$29 = this.getY() > (double)this.level.getMinBuildHeight() ? -0.1 : 0.0; } if (this.shouldDiscardFriction()) { this.setDeltaMovement($$28.x, $$29, $$28.z); } else { this.setDeltaMovement($$28.x * (double)$$27, $$29 * (double)0.98f, $$28.z * (double)$$27); } } } this.calculateEntityAnimation(this, this instanceof FlyingAnimal); } ...