mojira.dev
MC-69063

Minecarts with TNT not pushing player

The bug

Minecarts with TNT, when activated, don't seem to push/launch a player when activated with an activator rail.

How to reproduce

  1. Place two rails (one of them must be a powered activator rail)

  2. Place a Minecart with TNT and push it towards the activator rail

  3. Stand next to the flickering Minecart with TNT (in survival) and let it explode
    → ❌ You will take almost no knockback/won't be launched

Code analysis

Code analysis by @unknown can be found in this comment.

Attachments

Comments 16

Either I am doing something completely wrong, or MinecartTNTs don't launch the player at all in 15w36d

Confirmed for 1.10.2 for Survival mode

The explosion of a TNT minecart activated on an activator rail does not push back the player.

Please link to this comment in the description

The following is based on a decompiled version of Minecraft 1.10 using MCP 9.30.

The reason for this is very likely that the explosion is created inside the rail and therefor the method net.minecraft.world.World.getBlockDensity(Vec3d, AxisAlignedBB) returns 0f. Having the method net.minecraft.entity.item.EntityMinecartTNT.explodeCart(double) create the explosion at the middle of the minecart (y + height / 2) solves this problem.

Note: PrimedTnt offsets its y coordinate by its height / 16. This won't work for the TNT minecart and is kind of strange because you would expect the explosion to start from the middle.

6 more comments

Can confirm in 21w05b.

Can confirm in 21w06a.

Can confirm in 21w07a.

Cannot reproduce in 1.20.3 Pre-Release 1 following the steps provided in the isse:

[media]

I also can't reproduce this behavior prior to 1.20.3-pre1. Is this still an issue for anyone? If so, please attach a video showcasing the issue.

NotA RealName

Conem

(Unassigned)

Confirmed

Collision, Minecart

tnt_minecart

Minecraft 1.8-pre1, Minecraft 1.10.2, Minecraft 1.13.1, 1.15.2, 20w22a, ..., 21w03a, 1.16.5, 21w05b, 21w06a, 21w07a

Retrieved