mojira.dev
MC-108299

TNT is not affected by water on blocks with a non-full hitbox

The bug

TNT is not affected by water on blocks that are one pixel lower than full block, like, farmland, grass path, soulsand and honey blocks.

Linked issues

Attachments

Comments 20

Please do not mark unreleased versions as affected.
You don't have access to them yet.

What do you mean by "doesn't get affected by water"?

It still does block damage.

Can confirm for MC 1.12.1.

10 more comments

Possible cause: In the TNT entity's explode() function, the Y-coordinate of the explosion is calculated as 0.0625 x the entity's height. Since the TNT entity is 0.98 blocks tall, this puts the Y-coordinate at 0.06125, inside the gap in these blocks and outside of the water. I assume that the slightly smaller hitbox was done to allow TNT to fit down 1 block wide dropshafts easily.

Possible fix: Increase the Y-coordinate multiplier enough to push the result to be more than 0.0625. This will need testing to determine how the change will affect TNT explosions.

Can confirm in 1.18.2.

Can confirm in 1.19 and 22w24a.

Can confirm in 1.19.2.

Steven

[Mod] turbo

(Unassigned)

Confirmed

Gameplay

Normal

Block states, Entities

Minecraft 1.10.2, Minecraft 16w42a, Minecraft 1.12.1, Minecraft 1.12.2, Minecraft 1.13-pre6, ..., 1.20.5, 1.20.6, 1.21, 1.21.1, 24w33a

Retrieved