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

Required space for placing a boat is too small

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • 1.18 Pre-release 1
    • Minecraft 1.9.2, Minecraft 16w14a, Minecraft 16w15a, Minecraft 16w15b, Minecraft 1.9.3 Pre-Release 1, Minecraft 1.9.3 Pre-Release 2, Minecraft 1.9.3 Pre-Release 3, Minecraft 1.9.3, Minecraft 1.9.4, Minecraft 16w20a, Minecraft 16w21a, Minecraft 16w21b, Minecraft 1.10 Pre-Release 1, Minecraft 1.10 Pre-Release 2, Minecraft 1.10, Minecraft 1.10.1, Minecraft 1.10.2, Minecraft 16w32a, Minecraft 16w32b, Minecraft 16w33a, Minecraft 16w35a, Minecraft 16w36a, Minecraft 16w38a, Minecraft 16w39a, Minecraft 16w39b, Minecraft 16w39c, Minecraft 16w40a, Minecraft 16w41a, Minecraft 16w42a, Minecraft 16w43a, Minecraft 16w44a, Minecraft 1.11 Pre-Release 1, Minecraft 1.11, Minecraft 16w50a, Minecraft 1.11.2, Minecraft 17w06a, Minecraft 17w13a, Minecraft 17w13b, Minecraft 17w14a, Minecraft 17w15a, Minecraft 17w16a, Minecraft 17w16b, Minecraft 17w17a, Minecraft 17w17b, Minecraft 17w18a, Minecraft 17w18b, Minecraft 1.12 Pre-Release 1, Minecraft 1.12 Pre-Release 2, Minecraft 1.12 Pre-Release 3, Minecraft 1.12 Pre-Release 4, Minecraft 1.12 Pre-Release 5, Minecraft 1.12 Pre-Release 6, Minecraft 1.12 Pre-Release 7, Minecraft 1.12, Minecraft 1.12.1 Pre-Release 1, Minecraft 1.12.1, Minecraft 1.12.2 Pre-Release 1, Minecraft 1.12.2 Pre-Release 2, Minecraft 1.12.2, Minecraft 17w43a, Minecraft 17w43b, Minecraft 17w45a, Minecraft 17w45b, Minecraft 17w46a, Minecraft 17w47a, Minecraft 17w47b, Minecraft 17w48a, Minecraft 17w49a, Minecraft 17w49b, Minecraft 17w50a, Minecraft 18w01a, Minecraft 18w02a, Minecraft 18w03b, Minecraft 18w05a, Minecraft 18w06a, Minecraft 18w07a, Minecraft 18w07b, Minecraft 18w07c, Minecraft 18w08a, Minecraft 18w08b, Minecraft 18w09a, Minecraft 18w10a, Minecraft 18w10b, Minecraft 18w10c, Minecraft 18w10d, Minecraft 18w11a, Minecraft 18w14a, Minecraft 18w14b, Minecraft 18w15a, Minecraft 1.13-pre1, Minecraft 1.13-pre6, Minecraft 1.13, Minecraft 18w31a, Minecraft 18w32a, Minecraft 18w33a, Minecraft 1.13.1-pre1, Minecraft 1.13.1-pre2, Minecraft 1.13.1, Minecraft 1.13.2-pre1, Minecraft 1.13.2-pre2, Minecraft 1.13.2, Minecraft 18w43a, Minecraft 18w43b, Minecraft 18w43c, Minecraft 18w44a, Minecraft 18w48a, Minecraft 18w48b, Minecraft 18w49a, Minecraft 18w50a, Minecraft 19w12b, Minecraft 19w13b, Minecraft 19w14a, Minecraft 19w14b, Minecraft 1.14.3, 1.14.4, 19w34a, 19w39a, 19w42a, 19w45b, 1.15 Pre-release 1, 1.15, 1.15.1, 1.15.2 Pre-release 2, 1.15.2, 20w06a, 20w07a, 20w08a, 20w09a, 20w10a, 20w11a, 20w12a, 20w13b, 20w18a, 1.16 Release Candidate 1, 1.16, 1.16.1, 1.16.2 Pre-release 1, 1.16.2 Release Candidate 1, 1.16.2 Release Candidate 2, 1.16.2, 1.16.3, 1.16.4 Pre-release 1, 1.16.4 Release Candidate 1, 1.16.4, 20w45a, 20w46a, 20w49a, 21w03a, 1.16.5, 21w05a, 21w05b, 21w06a, 21w07a, 21w11a, 21w13a, 21w14a, 21w15a, 21w16a, 1.17 Pre-release 2, 1.17 Pre-release 5, 1.17 Release Candidate 1, 1.17, 1.17.1 Release Candidate 1, 1.17.1, 21w37a, 21w40a, 21w43a
    • Confirmed
    • Collision, Entities, Hitboxes
    • Normal

      The bug

      The required space when placing a boat is too small.
      This allows the collision box of the boat to intersect with blocks.
      At 18w31a will make the boat fall into the void.

      Video:
      https://www.youtube.com/watch?v=MlRPQVz-y9Y

      How to reproduce

      1. Put a boat in your hand
      2. Place a block on the ground
      3. Look at the ground right in front of the placed block
      4. Hold right click while slowly moving the cursor away from the block

      Code analysis

      Based on 1.12.2 decompiled using MCP 9.40

      The method net.minecraft.item.ItemBoat.onItemRightClick(World, EntityPlayer, EnumHand) decreases the collision box size when it tests for no collisions:

      if (!worldIn.getCollisionBoxes(entityboat, entityboat.getEntityBoundingBox().grow(-0.1D)).isEmpty())
      {
          return new ActionResult<ItemStack>(EnumActionResult.FAIL, itemstack);
      }
      

        1. 2016-04-26_22.14.02.png
          168 kB
          [Mod] Les3awe
        2. 2016-04-26_22.14.02-2.png
          288 kB
          [Mod] Les3awe
        3. 2016-04-26_22.14.17.png
          158 kB
          [Mod] Les3awe
        4. 2016-04-26_22.14.27.png
          166 kB
          [Mod] Les3awe
        5. 2016-04-26_22.14.38.png
          119 kB
          [Mod] Les3awe
        6. 2016-04-26_22.14.48.png
          560 kB
          [Mod] Les3awe
        7. 2016-05-03_00.54.28.png
          816 kB
          [Mod] Les3awe
        8. 2016-05-03_00.54.40.png
          237 kB
          [Mod] Les3awe
        9. 2016-05-03_00.54.52.png
          559 kB
          [Mod] Les3awe
        10. 2016-05-03_00.55.02.png
          254 kB
          [Mod] Les3awe
        11. 2016-05-03_00.55.12.png
          349 kB
          [Mod] Les3awe
        12. 2016-05-03_00.55.33.png
          861 kB
          [Mod] Les3awe
        13. 2018-09-05_11.22.33.png
          390 kB
          [Mod] Les3awe
        14. 2018-09-05_11.22.44.png
          779 kB
          [Mod] Les3awe
        15. MC-101334.mp4
          4.49 MB
          [Mod] Avoma

            Unassigned Unassigned
            Les3awe [Mod] Les3awe
            Votes:
            12 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: