The Bug:
TNT falls through fences and walls when ignited while on top of them.
Steps to Reproduce:
Place down a fence or a wall, and the place some TNT on top of it.
Ignite the TNT and watch it closely.
Observed Behavior:
TNT falls through fences and walls when ignited whilst on top of them.
Expected Behavior:
TNT would not fall through fences and walls when ignited whilst on top of them.
Code Analysis:
The following is based on names using yarn (20w06a).
As said above, the TNT hops, but because of the fence being 1.5 blocks high, the TNT hops into the fence's hitbox and as result falls through. The "hop" has a motionY
(vertical motion) of 0.20000000298023224
in the net.minecraft.entity.TntEntity.TntEntity
initial method. This vertical motion is not enough to get on top of the fence/wall's hitbox. A suggested value would be; 0.22649273522D
. Changing this initial value has very little impact to no impact (from 6 pixel high jump to 8 pixels jump, roughly).
As mentioned above already; change the initial motion (setVelocity
) to: 0.22649273522
.
this.setVelocity(-Math.sin(double10) * 0.02, 0.22649273522, -Math.cos(double10) * 0.02);
Related issues
is duplicated by
relates to
Attachments
Comments


Confirmed.

Fixed in 1.8

Confirmed fixed.

Back in 15w47c

Confirmed for 1.13 & 18w30b.

Confirmed for 18w31a.

Confirmed for 18w32a.

Confirmed for 18w33a.

Confirmed for 1.13.1.

Confirmed for 1.13.2-pre2. Please, if you don't mind, I'd like to be the reporter of this ticket.

@@unknown, you are now the reporter.

Confirmed for 1.14.2.

Confirmed for 1.14.4.

cannot have happened in unrealeased version

What do you mean? Minecraft 1.14.4 has been a released version as of July 19th, and its the 26th as of writing this comment.

Confirmed for 1.15.1 and 1.15.2 pre2 (I think)

Confirmed for 20w06a. Please change the reporter to me, so I can keep it updated.

Confirmed for 1.16 Pre-release 2.

Confirmed in 1.16-pre3.

Confirmed in 1.16-pre4.

Confirmed in 1.16-pre5.

Confirmed in 1.16-pre6.

Confirmed in 1.16-pre7.

Confirmed in 1.16-pre8.

Confirmed in 1.16-rc1.

Can confirm for 1.16.1 and 20w29a
Can confirm in 20w51a.
Can confirm in 21w03a.
Can confirm in 21w05b.
Can confirm in 21w06a.
Can confirm in 21w07a. Video attached.
Can confirm in 21w11a.
Can confirm in 21w15a.
Can confirm in 21w17a.

Can confirm in 21w20a.

Can confirm in 1.17 Pre-release 1.

Can confirm in Minecraft 1.17 Pre-release 2.

Can confirm in 1.17 Pre-release 3.

Can confirm in 1.17 Pre-release 4.

Can confirm in 1.17 Pre-release 5.

Can confirm in 1.17 Release Candidate 1.

@unknown Adding versions other than the latest release or snapshot is much harder to do and usually not worth it. You also don't need a separate comment for each of these.

Good to know Fabian, thanks!

Can confirm in 1.16.5

Also, the tnt can only fall through 1 fence
If placed on more fences it will not fall through

If it’s in the air, the tnt will fall thru the fence like there isn’t anything there
if there is a fence below it it will fall about half way down since the fences are 1.5 blocks tall

Can confirm in 1.17 Release Candidate 2.
Can confirm in 1.17.1.
I'd like to request ownership of this ticket since the current reporter has been inactive for over a year. I'm willing to keep this ticket updated and will continue to provide all of the necessary details.
@@unknown, completed.
Thanks very much @unknown. 🙂