Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-185955

When your eye level is up to 2 pixels above water, you count as being underwater as if it would be a full block

    • Icon: Bug Bug
    • Resolution: Fixed
    • 24w03a
    • 1.15.2, 20w21a, 1.16 Pre-release 3, 1.16 Pre-release 4, 1.16 Pre-release 5, 1.16 Pre-release 6, 1.16 Pre-release 7, 1.16 Pre-release 8, 1.16 Release Candidate 1, 1.16, 1.16.1, 20w27a, 20w28a, 20w29a, 20w30a, 1.16.2 Pre-release 1, 1.16.2 Pre-release 2, 1.16.2 Pre-release 3, 1.16.2 Release Candidate 1, 1.16.2 Release Candidate 2, 1.16.2, 1.16.3 Release Candidate 1, 1.16.3, 1.16.4 Pre-release 1, 1.16.4 Pre-release 2, 1.16.4 Release Candidate 1, 1.16.4, 20w45a, 20w46a, 20w48a, 20w49a, 20w51a, 21w03a, 21w05a, 21w05b, 21w06a, 21w07a, 21w08a, 21w08b, 21w10a, 21w11a, 21w13a, 21w14a, 21w15a, 21w16a, 21w17a, 21w18a, 1.17.1, 1.20.2, 23w43b, 1.20.3 Pre-Release 2
    • None
    • Confirmed
    • (Unassigned)

      The bug

      When your eye level is at the two highest pixels of water you count as being underwater, even though water is only 14/16 high. This causes the following things to happen when the eye level is in one if the two highest pixels of the water which is when your feet are at y level x.27 to x.37 that should not happen (list might be incomplete):

      1. The sound for getting underwater plays when it shouldn’t
      2. Scoreboards with minecraft.custom:minecraft.walk_under_water_one_cm increase when walking
      3. Underwater ambients play
      4. Conduit power which is supposed to only change your view when underwater changes your view like night vision
        You will also be able to drown when swimming in water when your eye level is slightly above the water.

      However you don’t have the underwater view.

      How to reproduce

      1. Find an ocean
      2. Be in flying mode in creative
      3. Run this command: /execute in minecraft:overworld run tp @s ~ 61.37 ~ ~ 0

      What I observed: The sound played.
      What I expected: The sound doesn’t play.

            Unassigned Unassigned
            bugsbugsbugs bugsbugsbugs
            Votes:
            8 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: