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

Lava / water bucket desync when using it while rapidly turning



    • Type: Bug
    • Status: Reopened
    • Resolution: Unresolved
    • Affects Version/s: Minecraft 1.5, Minecraft 1.6.1, Minecraft 1.6.2, Minecraft 1.7.4, Minecraft 15w31c, Minecraft 15w35e, Minecraft 15w46a, Minecraft 1.10.2, Minecraft 1.12.2, Minecraft 18w03b, Minecraft 18w10d, Minecraft 18w20c, Minecraft 1.13-pre2, Minecraft 1.13-pre3, Minecraft 1.13-pre8, Minecraft 1.13-pre9, Minecraft 1.13-pre10, Minecraft 1.13, Minecraft 18w30b, Minecraft 18w31a, Minecraft 18w32a, Minecraft 18w33a, Minecraft 1.13.1-pre1, Minecraft 1.13.1, Minecraft 1.13.2-pre1, Minecraft 1.13.2-pre2, Minecraft 1.13.2, Minecraft 18w43b, Minecraft 18w45a, Minecraft 18w46a, Minecraft 18w49a, Minecraft 19w02a, Minecraft 19w03a, Minecraft 19w05a, Minecraft 19w06a, Minecraft 19w07a, Minecraft 19w08a, Minecraft 19w09a, Minecraft 19w11a, Minecraft 19w11b, Minecraft 19w12b, Minecraft 19w13a, Minecraft 19w13b, Minecraft 19w14a, Minecraft 19w14b, Minecraft 1.14 Pre-Release 1, Minecraft 1.14 Pre-Release 2, Minecraft 1.14 Pre-Release 3, Minecraft 1.14 Pre-Release 4, Minecraft 1.14 Pre-Release 5, Minecraft 1.14, Minecraft 1.14.1, Minecraft 1.14.2 Pre-Release 1, Minecraft 1.14.2 Pre-Release 2, Minecraft 1.14.2, Minecraft 1.14.3 Pre-Release 2, Minecraft 1.14.3, Minecraft 1.14.4 Pre-Release 1, Minecraft 1.14.4 Pre-Release 3, Minecraft 1.14.4 Pre-Release 4, Minecraft 1.14.4 Pre-Release 5, Minecraft 1.14.4 Pre-Release 6, 1.14.4, 19w34a, 19w35a, 19w36a, 19w37a, 19w38b, 19w39a, 19w40a, 19w41a, 19w42a, 19w45b, 19w46b, 1.15 Pre-release 1, 1.15 Pre-Release 2, 1.15 Pre-release 3, 1.15 Pre-release 4, 1.15 Pre-release 5, 1.15 Pre-release 6, 1.15 Pre-release 7, 1.15, 1.15.1, 1.15.1 Pre-release 1, 1.15.2 Pre-Release 1, 1.15.2 Pre-release 2, 1.15.2, 20w06a, 20w07a
    • Fix Version/s: Minecraft 14w30c
    • Confirmation Status:
    • Game Mode:
    • Category:
      Block states
    • Mojang Priority:


      The bug

      A desync can happen when rapidly turning and trying to use a lava or water bucket. The bucket might appear full but you placed lava or water; or the bucket might appear empty but you did not place lava or water.

      How to reproduce

      1. Give yourself a lava bucket
      2. Spin around (move mouse) standing on a flat plain and repeatedly try to put down and pick up the lava in the bucket
        About 1 in 10 times, the client and server desync (e.g. I see the lava on the ground, and also in my bucket, until I use the bucket again or move it in my inventory; or I see no lava on the ground and my inventory displays the bucket as empty, but I actually still have lava and can place it).

      Code analysis

      Based on 1.12.2 decompiled using MCP 9.40

      Using a bucket calls server-side net.minecraft.item.ItemBucket.onItemRightClick(World, EntityPlayer, EnumHand) which calculates the position itself and therefore can cause a desync. Ideally the position for picking up liquids and placing them should be calculated client-side only and then the server should only validate it and use that position.


        1. 2018-08-31_11.56.14.png
          640 kB
        2. 2018-08-31_11.56.24.png
          676 kB
        3. CEa9-rIWoAAT7YU.jpg
          90 kB
        4. Minecraft_bug.mp4
          7.48 MB
        5. Water source pre8.gif
          Water source pre8.gif
          8.85 MB

          Issue Links



              • Assignee:
                brianmcn Brian McNamara
              • Votes:
                60 Vote for this issue
                31 Start watching this issue


                • Created: