mojira.dev
MC-2490

TNT animation ends at 80 ticks, ignores fuse length changes

Summon a Primed TNT using

/summon tnt ~ ~ ~ {Fuse:127}

As the fuse is set to 127, the Primed TNT will explode after 127 ticks. This is as expected.

However the client isn't informed of this change and will show the TNT animation exploding at the normal 80 ticks. This also removes the TNT entity from the client side.

/data merge entity @e[type=tnt,limit=1] {Fuse:127}

works on the invisible TNT to extend the fuse, but will not render it back as the client has already deleted the entity.

TL;DR Server doesn't inform client of fuse length changes, TNT animation will always end at 80 ticks.


To reproduce in 16w21b, simply summoning a TNT with Fuse:127b won't work. You must continuously use /entitydata to stop the Fuse value from reaching zero.
Example: run this in a repeating command block:

/data merge entity @e[type=tnt,limit=1] {Fuse:127}

Code analysis by @unknown can be found in this comment.

Linked issues

Comments 42

How are you changing the fuse length?

TNT now has an NBT tag defining the fuse length.

I would still like to know the steps taken to accomplish this so it can be confirmed.

This was using bukkit.

Spawned in entity and changed fuse length.

The client won't know about the fuse length being changed after being spawned - hence why it explodes at a different time. As this was done using bukkit, this is invalid as it cannot be repeated under vanilla circumstances.

32 more comments

Confirmed for 1.11.2.

Confirmed for 1.13.1.

Updated entitydata command: /data merge entity @e[type=tnt,limit=1] {Fuse:127}

Affects 19w38b, can I request ownership?

libraryaddict

muzikbike

slicedlime

Confirmed

Normal

Commands, Entities, Rendering

Minecraft 1.4.2, Minecraft 1.5, Minecraft 1.5.2, Minecraft 1.6.2, Minecraft 1.6.4, ..., 1.16.2, 1.16.3 Release Candidate 1, 1.16.3, 1.16.4 Pre-release 2, 1.16.4

Minecraft 15w32c, 20w46a

Retrieved