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.

Related issues

Attachments

Comments

migrated
[media][media]
migrated

Still an issue in 18w20a

migrated

Affects 18w20b

CreeperMagnet_

Affects 20c.

migrated

Affects 18w21b

migrated

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

migrated

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

migrated

Confirmed for 1.13-pre1

migrated

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. 

migrated

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.

migrated

Affects 1.13-pre5!

migrated

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