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

Required space for placing a boat is too small

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Resolution: Unresolved
    • Affects Version/s: 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
    • Fix Version/s: None
    • Confirmation Status:
      Confirmed
    • Category:
      Collision, Entities, Hitboxes
    • Mojang Priority:
      Normal

      Description

      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);
      }
      

        Attachments

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

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              Les3awe [Mod] Les3awe
              Votes:
              9 Vote for this issue
              Watchers:
              8 Start watching this issue

                Dates

                Created:
                Updated:
                CHK: