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

Player sometimes doesn't count as "swimming" when bobbing in a liquid

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Awaiting Response
    • None
    • Minecraft 1.9.3 Pre-Release 1, Minecraft 1.12.1
    • None
    • Operating system: OSX 10.9.5
      Java Version: 1.6.0_65
    • Unconfirmed

      When the player is holding spacebar and bobbing at the surface of the water, there is a moment right at the top of the "bob" when the game doesn't register the player as swimming. Commands will still find the player to be within the water block at this point, it's just the swimming check that doesn't. This bug has a number of effects:

      • The swimming statistic will not register the distance moved when you are at the top of your "bob". If you swim at a constant speed, the swimOneCm statistic will increase at a varying speed.
      • The levitation effect normally doesn't work in water. However when the player reaches the top of their "bob", it will suddenly take effect, pulling them out of the water.
      • The player's hunger will decrease very slightly more slowly than it should, since it doesn't decrease when the game doesn't see the player as swimming. (I haven't bothered testing this though, as it would be an extremely small difference.)
      • It's possible that this bug is what causes sprinting and speed potions to take partial effect while swimming. I haven't tested this though.

      This bug also occurs in lava, although it's less visible since stat.swimOneCm doesn't work in lava (MC-101297).

            Unassigned Unassigned
            KingSupernova KingSupernova
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: