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

Moving minecarts or boats collide with players / mobs even if collisionRule disables collision

    XMLWordPrintable

    Details

    • Confirmation Status:
      Confirmed

      Description

      The bug

      Moving minecarts or boats collide with players or mobs even if the collisionRule of the minecart's or boat's team prevents collision. It only disables pushing a stationary minecart or boat.

      How to reproduce

      1. Create a team
        /scoreboard teams add testTeam
        
      2. Set the collisionRule option to for example never
        /scoreboard teams option testTeam collisionRule never
        
      3. Place a minecart on powered rails which will later move the minecart towards you (for example as seen in the screenshot)
      4. Make the minecart and yourself join the team
        /scoreboard teams join testTeam @e
        
      5. Make the minecart move towards you
        → You will see that the minecarts stops in front of you, but you cannot push it

      Code analysis

      Based on 1.11.2 decompiled using MCP 9.35 rc1

      The methods of boats and minecarts overriding net.minecraft.entity.Entity.getCollisionBox(Entity) do not test if the entity they are returning a bounding box for, can be collided with.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              TheWolff Thijmen Geurtsen
            • Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                CHK: