The player cannot enter swim-mode when they have the blindness status effect applied
The bug
The player will be unable to start swimming if they have the blindness status effect applied.
Steps to Reproduce:
- Enter a pool of water, 2 blocks or higher
- Apply blindness:
/effect give @p minecraft:blindness 1
- Press and hold ctrl, while moving forward
Observed Behavior:
The player will never enter swim-mode with the effect applied.
Expected Result:
The player would be able to swim, regardless of the effect.
Screenshots/Videos:
Video by [Mod] Avoma:
MC-190768.mp4
Created Issue:
You can't swim with blindness potion effect
If you give yourself blindness potion effect, you can't swim underwater with swim animation.
/effect give (player) minecraft:blindness
Environment
Windows 10
relates to
You can't swim withblindness potion effectYou can't swim with Blindness potion effect
The bug
The player will be unable to start swimming if they have the blindness status effect applied.
Steps to Reproduce:
- Enter a pool of water, 2 blocks or higher
- Apply blindness:
/effect give @p minecraft:blindness 1- Press and hold ctrl, while moving forward
Observed Behavior:
The player will never enter swim-mode with the effect applied.
Expected Result:
The player would be able to swim, regardless of the effect.
Screenshots/Videos:
Video by [Mod] Avoma:
MC-190768.mp4![]()
You can't swim with BlindnesspotioneffectThe player cannot enter swim-mode when they have the blindness status effect applied
If you position yourself right below the surface of water while swimming, you will be unable to swim up past the top of the water to get out (using the jump key will still work).
Steps to Reproduce:
- Recreate the following setup:
- Enter swim-mode (Stay like this for the rest of the steps)
- Swim towards the trapdoor
- Open the trapdoor once against it
- Try and swim out of the water
Observed Behavior:
The player will be stuck below the surface of the water until they either 1. leave swim mode, 2. swim downards, then back up or 3. press and hold space.
Expected Result:
The player would swim up out of the water like they normally do.
Screenshots/Videos:
Notes:
If change your gamemode to spectator while running into an obstruction, your sprint will be disabled.
Steps to Reproduce:
- Run towards a wall in Creative or Survival mode (continue doing this)
- Press F3 + N to change gamemode
Observed & Expected Results
- You will not be sprinting when entering spectator mode, and will not be able to sprint at all until changing your gamemode again.
- Your sprint would continue when changing gamemodes, and not be disabled.
Video
(Since my key presses are not shown, I am sprinting into the wall, switching game modes, then sprinting again in spectator)
SpectatorSprint.mp4
Notes
The same piece of code is responsible for being able to start sprinting and swimming, so since MC-16014 was resolved as "Works As Intended", it's more than likely that this ticket (MC-190768) will have an identical, if not, similar resolution/outcome.
Regardless, here's a code analysis of this issue. The following is based on a decompiled version of Minecraft 1.18.1 using MCP-Reborn.
Code Analysis:
public class LocalPlayer extends AbstractClientPlayer { ... public void aiStep() { ... boolean flag4 = (float)this.getFoodData().getFoodLevel() > 6.0F || this.getAbilities().mayfly; ... if (!this.isSprinting() && (!this.isInWater() || this.isUnderWater()) && this.hasEnoughImpulseToStartSprinting() && flag4 && !this.isUsingItem() && !this.hasEffect(MobEffects.BLINDNESS) && this.minecraft.options.keySprint.isDown()) { this.setSprinting(true); } ...
If we look at the above class, we can see that the code specifically checks to see whether or not the player has the blindness effect when attempting to start sprinting or swimming. This is evident through the following line of code:
!this.hasEffect(MobEffects.BLINDNESS)
This basically means that if the player has the blindness effect, you will not be able to start sprinting or swimming.

Hi there!
I can confirm for snapshot 20w29a and release 1.16.1.
I can confirm in 20w48a.
Can confirm in 21w03a.
You aren't supposed to be able to sprint with blindness. Swimming is sprinting under water.
Can confirm in 21w11a.
Can confirm in 21w15a.
Can confirm in 1.16.5 and 21w19a.
Duplicate of
MC-16014user-c84db, this would relate to
MC-16014and not duplicate it. Sprinting and swimming are similar things, but not the same.I am pretty sure that this is intentional.
It is intentional-- swimming is directly tied to sprinting, so when you can't sprint, you can't swim.
Can confirm in 1.17.
Can confirm in 1.17.1.
Can confirm in 1.18.
Can confirm in 1.18.1.
The same piece of code is responsible for being able to start sprinting and swimming, so since
MC-16014was resolved as "Works As Intended", it's more than likely that this ticket (MC-190768) will have an identical, if not, similar resolution/outcome.Regardless, here's a code analysis of this issue. The following is based on a decompiled version of Minecraft 1.18.1 using MCP-Reborn.
Code Analysis:
If we look at the above class, we can see that the code specifically checks to see whether or not the player has the blindness effect when attempting to start sprinting or swimming. This is evident through the following line of code:
!this.hasEffect(MobEffects.BLINDNESS)This basically means that if the player has the blindness effect, you will not be able to start sprinting or swimming.
Can confirm in 1.18.2 and 22w12a.
Can confirm in 1.19.
Can confirm in 1.19.2.
Affects 1.20.5. Requesting ownership of this issue to keep it up to date, due to an inactive owner since 2020.