The bug
A player will suffocate when touching a solid block while swimming.
Linked issues
is duplicated by 10
relates to 2
Attachments
Comments 10
Just adding some details from the duplicates:
Happens pretty much any time the player attempts to swim up from under a 1-block high space, or when swimming near a "ceiling" (any solid blocks close overhead) underwater.
Confirmed for MC 1.13-pre1
This bugs appears when you touch a block while swimming. This is due to the player's hitbox. When you get touched, you are "attacking" your hitbox. Also happens when you sprint in a 1-high space as Rat Dog said.
Still an issue in 18w20a