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

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • Minecraft 1.11.2, Minecraft 17w06a, Minecraft 1.12.2 Pre-Release 2, Minecraft 1.13.1, Minecraft 1.13.2, Minecraft 19w05a, Minecraft 19w06a, Minecraft 19w07a, 1.15.2, 1.16 Release Candidate 1, 1.16, 1.16.1, 1.16.2, 1.16.3, 1.16.4 Pre-release 2, 20w46a, 21w18a, 21w19a, 21w20a, 1.17 Pre-release 1, 1.17 Pre-release 2, 1.17 Pre-release 3, 1.17 Pre-release 4, 1.17 Pre-release 5, 1.17 Release Candidate 1, 1.17, 1.17.1 Pre-release 1, 1.17.1, 21w37a, 21w38a, 21w39a, 21w40a, 21w41a, 21w42a, 21w43a, 21w44a, 1.18 Pre-release 1, 1.18 Pre-release 6, 1.18, 22w03a, 22w06a, 1.18.2, 22w13a, 22w14a, 22w16b, 22w17a, 22w18a, 22w19a, 1.19 Pre-release 1, 1.19 Pre-release 4, 1.19, 1.19.4, 23w13a, 1.20 Pre-release 1, 23w43b, 24w12a, 1.20.5, 1.21, 1.21.2 Pre-Release 3
    • Confirmed
    • Collision
    • Normal
    • Platform

      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.
        /team add testTeam
        
      2. Set the collisionRule option to for example never.
        /team modify 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.
        /team 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.

        1. Untitled.png
          131 kB
          Thijmen Geurtsen

            Unassigned Unassigned
            iliketra1ns iliketra1ns
            Votes:
            22 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              CHK: