mojira.dev
MC-114683

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

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.

Linked issues

Attachments

Comments 9

Changed the description and summary and added reproduction steps, I hope you are fine with that.

Confirmed for 1.13.1.

Confirmed for 1.15.2

Affects 1.16 Release Candidate 1
Might relate to MC-153230

Confirmed for 1.16.3 as well as the 1.16.4 pre-release 1 and 2.

May I request ownership?

Still an issue 1.21.8

Thijmen Geurtsen

iliketra1ns

(Unassigned)

Confirmed

Platform

Normal

Collision

boat, collision, collisionRule, minecart, team

Minecraft 1.11.2, Minecraft 17w06a, Minecraft 1.12.2 Pre-Release 2, Minecraft 1.13.1, Minecraft 1.13.2, ..., 23w43b, 24w12a, 1.20.5, 1.21, 1.21.2 Pre-Release 3

Retrieved