mojira.dev
MC-125638

Ignited TNT block create entity offset at high coordinates

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

  1. Teleport to high coordinates (in certain cases this may lead to MC-92916)

    /teleport 29999983 ~ 29999983
  2. 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

Comments

muzikbike

Affects 1.13-pre1

mc_Dandy

Caused by float rounding error.

Oval

Confirmed for 1.13.1.

muzikbike

Affects 18w47b

muzikbike

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

muzikbike

Can also confirm this affects 18w50a

muzikbike

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

muzikbike

Affects 19w14a

muzikbike

Affects 19w14b

muzikbike

Affects 1.14pre2

muzikbike

Affects 19w36a

muzikbike

Affects 19w37a

muzikbike

Affects 19w38b

muzikbike

Affects 19w39a

muzikbike

Affects 19w40a

muzikbike

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.

Marcono1234

tomudding

Fry

Confirmed

Low

Entities

precision-loss, tnt, tnt-entity

Minecraft 1.12.2, Minecraft 18w07c, Minecraft 18w09a, Minecraft 18w10a, Minecraft 18w11a, ..., 19w40a, 19w41a, 19w42a, 1.15 Pre-release 1, 1.15 Pre-Release 2

1.15 Pre-release 4

Retrieved