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 16

Affects 1.13-pre1

Caused by float rounding error.

Confirmed for 1.13.1.

Affects 18w47b

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

6 more comments

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.

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