mojira.dev
MC-12730

TNT falls through fences and walls when ignited whilst on top of them

The Bug:

TNT falls through fences and walls when ignited while on top of them.

Steps to Reproduce:

  1. Place down a fence or a wall, and the place some TNT on top of it.

  2. 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

Attachments

Comments

migrated
[media][media][media][media][media]
migrated

Confirmed.

migrated

Fixed in 1.8

migrated

Confirmed fixed.

kumasasa

Back in 15w47c

migrated

Confirmed for 1.13 & 18w30b.

migrated

Confirmed for 18w31a.

migrated

Confirmed for 18w32a.

migrated

Confirmed for 18w33a.

migrated

Confirmed for 1.13.1.

migrated

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

marcono1234

@@unknown, you are now the reporter.

migrated

Confirmed for 1.14.2.

migrated

Confirmed for 1.14.4.

migrated

cannot have happened in unrealeased version

 

migrated

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.

migrated

Confirmed for 1.15.1 and 1.15.2 pre2 (I think)

migrated

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

migrated

Confirmed for 1.16 Pre-release 2.

migrated

Confirmed in 1.16-pre3.

migrated

Confirmed in 1.16-pre4.

migrated

Confirmed in 1.16-pre5.

migrated

Confirmed in 1.16-pre6.

migrated

Confirmed in 1.16-pre7.

migrated

Confirmed in 1.16-pre8.

migrated

Confirmed in 1.16-rc1.

pulpetti

Can confirm for 1.16.1 and 20w29a

Avoma

Can confirm in 20w51a.

Avoma

Can confirm in 21w03a.

Avoma

Can confirm in 21w05b.

Avoma

Can confirm in 21w06a.

Avoma

Can confirm in 21w07a. Video attached.

Avoma

Can confirm in 21w11a.

Avoma

Can confirm in 21w15a.

Avoma

Can confirm in 21w17a.

Lukornia

Can confirm in 21w20a.

Lukornia

Can confirm in 1.17 Pre-release 1.

Lukornia

Can confirm in Minecraft 1.17 Pre-release 2.

Lukornia

Can confirm in 1.17 Pre-release 3.

Lukornia

Can confirm in 1.17 Pre-release 4.

Lukornia

Can confirm in 1.17 Pre-release 5.

Lukornia

Can confirm in 1.17 Release Candidate 1.

FaRo1

@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.

Lukornia

Good to know Fabian, thanks!

migrated

Can confirm in 1.16.5

migrated

Also, the tnt can only fall through 1 fence

If placed on more fences it will not fall through

migrated

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

Lukornia

Can confirm in 1.17 Release Candidate 2.

Avoma

Can confirm in 1.17.1.

Avoma

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.

[Mod]Les3awe

@@unknown, completed.

Avoma

Thanks very much @unknown. 🙂

Avoma

(Unassigned)

Confirmed

Gameplay

Normal

Collision, Entities, Hitboxes

fence, tnt, wall

Minecraft 1.5.1, Snapshot 13w21b, Snapshot 13w22a, Minecraft 15w47c, Minecraft 1.10.2, ..., 1.21.2 Pre-Release 3, 1.21.3, 1.21.4, 25w08a, 1.21.5

Minecraft 14w25b

Retrieved