mojira.dev
MC-129388

Player suffocating when touching a solid block while swimming

The bug

A player will suffocate when touching a solid block while swimming.

Linked issues

Attachments

Comments 10

Still an issue in 18w20a

Affects 18w20b

CreeperMagnet_

Affects 20c.

Affects 18w21b

The reason this happens is when you're swimming, your eye height goes outside the hitbox.

Block twenty-eight

Confirmed for 18w22a. For me, this bug happens when you swim upwards in a 1x1 tunnel.

Block twenty-eight

Confirmed for 1.13-pre1

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.

Affects 1.13-pre5!

Mazen

Agnes Larsson

Confirmed

swimming

Minecraft 18w19b, Minecraft 18w20a, Minecraft 18w20b, Minecraft 18w20c, Minecraft 18w21b, ..., Minecraft 1.13-pre2, Minecraft 1.13-pre3, Minecraft 1.13-pre4, Minecraft 1.13-pre5, Minecraft 1.13-pre6

Minecraft 1.13-pre7

Retrieved