-
Bug
-
Resolution: Unresolved
-
None
-
Minecraft 18w16a, 1.16.1, 1.16.4, 20w51a, 1.16.5, 21w11a, 21w13a, 21w14a, 21w15a, 21w16a, 21w17a, 21w18a, 21w19a, 21w20a, 1.17 Pre-release 1, 1.17 Pre-release 2, 1.17 Pre-release 3, 1.17 Pre-release 4, 1.17 Pre-release 5, 1.17 Release Candidate 1, 1.17 Release Candidate 2, 1.17, 1.17.1 Pre-release 1, 1.17.1 Pre-release 2, 1.17.1 Pre-release 3, 1.17.1 Release Candidate 1, 1.17.1 Release Candidate 2, 1.17.1, 21w37a, 21w38a, 21w39a, 21w40a, 21w41a, 21w42a, 21w43a, 21w44a, 1.18 Pre-release 1, 1.18 Pre-release 2, 1.18 Pre-release 3, 1.18 Pre-release 4, 1.18 Pre-release 5, 1.18 Pre-release 6, 1.18 Pre-release 7, 1.18 Pre-release 8, 1.18 Release Candidate 1, 1.18 Release Candidate 3, 1.18 Release Candidate 4, 1.18, 1.18.1 Pre-release 1, 1.18.1 Release Candidate 2, 1.18.1, 22w03a, 22w05a, 22w06a, 22w07a, 1.18.2 Pre-release 1, 1.18.2 Pre-release 2, 1.18.2 Pre-release 3, 1.18.2 Release Candidate 1, 1.18.2, 22w11a, 22w12a, 22w13a, 22w14a, 22w15a, 22w16b, 22w17a, 22w18a, 22w19a, 1.19 Pre-release 1, 1.19 Pre-release 2, 1.19 Pre-release 3, 1.19 Pre-release 4, 1.19 Pre-release 5, 1.19 Release Candidate 2, 1.19, 22w24a, 1.19.1 Pre-release 1, 1.19.1 Release Candidate 1, 1.19.1 Pre-release 2, 1.19.1 Pre-release 3, 1.19.1 Pre-release 4, 1.19.1 Pre-release 5, 1.19.1 Pre-release 6, 1.19.1 Release Candidate 2, 1.19.1 Release Candidate 3, 1.19.1, 1.19.2 Release Candidate 1, 1.19.2, 22w42a, 22w43a, 22w44a, 22w45a, 22w46a, 1.19.3 Pre-release 1, 1.19.3 Pre-release 2, 1.19.3 Pre-release 3, 1.19.3 Release Candidate 1, 1.19.3 Release Candidate 2, 1.19.3, 23w03a, 23w04a, 23w05a, 23w06a, 23w07a, 1.19.4 Pre-release 1, 1.19.4 Pre-release 2, 1.19.4 Pre-release 3, 1.19.4 Pre-release 4, 1.19.4 Release Candidate 1, 1.19.4 Release Candidate 2, 1.19.4 Release Candidate 3, 1.19.4, 23w12a, 23w13a, 23w14a, 23w16a, 23w17a, 23w18a, 1.20 Pre-release 1, 1.20 Pre-release 2, 1.20 Pre-release 4, 1.20 Pre-release 5, 1.20 Pre-release 6, 1.20 Pre-release 7, 1.20 Release Candidate 1, 1.20, 1.20.1 Release Candidate 1, 1.20.1, 23w33a, 1.20.2, 1.20.4, 24w12a, 1.20.6, 24w19b, 1.21, 1.21.1, 24w40a, 1.21.3, 24w46a
-
Confirmed
-
Hitboxes, Networking, Player
-
Important
-
Platform
The bug
If you hit an entity while swimming underwater, the player will stop swimming for a brief moment (it changes the size of its hitbox and returns to the swimming one) and then get stuck in the middle of the water if they try to swim below a block (the player gets stuck when their large hitbox collides with a block, even if they are using a different size hitbox).
How to Reproduce:
- Go to an aquifer (flooded cave)
- Underwater, spawn an entity:
/summon minecraft:drowned ~ ~ ~ {NoAI:1b,NoGravity:1b,PersistenceRequired:1b}
- Swim holding W + Ctrl (don't release these keys)
- Hit the entity (you will see that it stops swimming for a moment)
- Try to reach the ceiling of the cave.
You will get stuck a block away from the ceiling.
If you stop swimming, it will work normally again.
You can also reproduce this in third person with the hitboxes turned on (F3 + b), and you will see the quick hitbox change that it does when hitting the entity. Watch Bug with hitboxes on.mp4 to understand this better.
Relates to MC-69459.
Possible side effects of fixing this mentioned in this comment.
The bug can also be triggered when exiting the water in certain circumstances (if there is one block of air between the roof and the water and a block next to where the player comes out) and can cause damage to the player when colliding with a block. (Damaged when exiting the water.mp4)
*Moved to MC-234665
**Now on MC-233582
- is caused by
-
MC-69459 Client-server desync when player attacks while holding sprint key
- Reopened
- is duplicated by
-
MC-128846 Players can get stuck in their position and constantly jitter when attempting to swim through small spaces after having previously attacked an entity while swimming
- Resolved
-
MC-192536 I get stuck in water when I swim inside the water temples
- Resolved
-
MC-196151 I get stuck on/in blocks that I swim into
- Resolved
-
MC-208762 Guardians freeze you in place sometimes
- Resolved
-
MC-261501 stabbing a fish while swimming bugs you out surfacing if under an ice lake.
- Resolved
-
MC-263305 player freezes after catching a fish and swim into glowing blocks(glowblock,torch)
- Resolved
-
MC-264173 Fast Swimming Ceiling Glitch
- Resolved
-
MC-273384 Freezing in place swimming after sprint attacking
- Resolved
-
MC-273575 swimming under ice sometimes locks me in place
- Resolved
-
MC-277194 Player freezes when sprint-swimming underneath a block
- Resolved
- relates to
-
MC-129568 Sprint swimming underwater and hitting a mob will stop the player from sprinting under certain conditions
- Open