The bug
TNT blocks that are ignited at high coordinates create a TNT entity with an offset. Depending on the parity of the coordinates the TNT entity spawns approximately half a block to the right or half a block to the left of the original location.
How to reproduce
Teleport to high coordinates (in certain cases this may lead to MC-92916)
/teleport 29999983 ~ 29999983
Place a TNT block and ignite it, for example with flint and steel
→ ❌ The TNT entity is created with an offset
You can also verify that this is not a visual glitch by summoning entities at the positions of the TNT entities
/execute at @e[type=tnt] run summon armor_stand ~ ~ ~ {NoGravity:1b,Invulnerable:1b}
Linked issues
is duplicated by 1
relates to 1
Comments


Caused by float rounding error.
Confirmed for 1.13.1.

Affects 18w47b

Affects 18w49a. Can I request ownership of this ticket?

Can also confirm this affects 18w50a

Affects 19w13a and 19w13b. Can I request ownership of this ticket?
The following mod includes a fix for this bug, as well as a related bug where TNT blocks ignited by other explosions also suffer from precision loss: https://minecraft.curseforge.com/projects/farlands

Affects 19w14a

Affects 19w14b

Affects 1.14pre2

Affects 19w36a

Affects 19w37a

Affects 19w38b

Affects 19w39a

Affects 19w40a

This affects both manually lit TNT and TNT primed by other explosions. The causes of both of these seem to be in different parts of the code.
Affects 1.13-pre1