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

When the air block is waterlogged in a datapack (turned into water physics), the water height in the air block is only at the lowest possible height



    • Bug
    • Status: Open
    • Resolution: Unresolved
    • Minecraft 1.14.1 Pre-Release 1
    • None
    • None
    • Community Consensus
    • (Unassigned)



      One thing that I noticed during testing of my datapacks was when waterlogged air didn't seem to function properly. You could swim through the air, but you could not drown unless you really tried to, and there was very noisy splashing.

      One thing I found out with the testing below is that when your eye level was between the bottom of a block and 2 pixels up from the bottom of the block, you would finally begin to lose air, and keep losing air as well. The distance between the two pixels matches that of flowing water at the lowest height, as also shown in the testing below. However, if you ever left these 2 pixels, you would no longer be drowning and it is as if you are breathing air normally.

      So I believe that this can be fixed by setting the liquid height in air blocks to the maximum height possible, whether there is a liquid actually in it or not.

      Meaning of pictures:

      Each picture alternates shows the difference between vanilla data with regular air and datapack data that waterlogs air. Not in order, apparently, sorry. The vanilla data uses flowing water, while the datapack data uses waterlogged air, and the 2 are compared. They show that both waterlogged air and the lowest water height match when it comes to when the player begins to drown, leading me to assume that water height in air blocks is locked at the lowest height, causing the odd behavior in waterlogged air.

      How to replicate:

      1. Use the Datapack below to waterlog air blocks, or make your own, and put it in the datapacks folder, located in your world save data. (.minecraft/saves/namespace/datapacks)
      2. Load the world if you haven't already. Use /reload to turn on the datapack if it is not already on.
      3. Use a NoAI Shulker and stand on it, since blocks cannot bring you to the desired height. (Command: /summon minecraft:shulker ~ ~ ~ {NoAI:1b} )
      4. Adjust the Peek height of the Shulker to adjust your height. (Command (replace # with a number between 0 and 100): /data merge entity @e[type=minecraft:shulker,limit=1,sort=nearest] {Peek:#b}] )

      From Peek:43b to Peek:49b, the player begins to drown in both the lowest height of water and in waterlogged air.


        1. 2019-05-07_16.46.42.png
          553 kB
        2. 2019-05-07_16.46.51.png
          344 kB
        3. 2019-05-07_16.47.00.png
          338 kB
        4. 2019-05-07_16.47.08.png
          371 kB
        5. 2019-05-07_16.48.43.png
          235 kB
        6. 2019-05-07_16.48.49.png
          244 kB
        7. 2019-05-07_16.48.57.png
          289 kB
        8. 2019-05-07_16.49.06.png
          231 kB
        9. Waterlogged_Air.zip
          0.9 kB

        Issue Links



              Unassigned Unassigned
              yojojo3001 Joseph VanMiddelkoop
              1 Vote for this issue
              1 Start watching this issue