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

Boats don't push non boat entities of which the bottom of the hitbox is higher than the bottom of the boat hitbox

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Resolution: Unresolved
    • Affects Version/s: 1.15.2, 1.16 Pre-release 2, 1.16 Pre-release 3, 1.16.1, 1.16.2
    • Fix Version/s: None
    • Labels:
    • Confirmation Status:
      Plausible
    • Category:
      Entities

      Description

      When entities are on the edge of for example a trapdoor or slab, and their hitbox extends outside the trapdoor or slab and then you try to push the entity with a boat by riding it the entity doesn't get pushed, even though both hitboxes clearly collide.
      After looking in the code it clearly looks like a bug.

      (yarn mappings: net.minecraft.entity.vehicle boatEntity.java)

      @Override
      public void pushAwayFrom(Entity arg) {
          if (arg instanceof BoatEntity) {
              if (arg.getBoundingBox().minY < this.getBoundingBox().maxY) {
                  super.pushAwayFrom(arg);
              }
          } else if (arg.getBoundingBox().minY <= this.getBoundingBox().minY) {
              super.pushAwayFrom(arg);
          }
      }
      

      As you can see when a boat and a non boat entity collide it only pushes the entity if the bottom of hitbox from the boat is on the same height, or higher than the bottom of the hitbox from the entity, as can bee seen in the following line:

      else if (arg.getBoundingBox().minY <= this.getBoundingBox().minY)
      

      This seems very unintntional

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            viktorvn40 Viktor40
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              CHK: