mojira.dev
MC-259964

Display Entity does not resume interpolation outside of spawn chunks

Bug

If a display entity is animating in a non-spawn chunk, and the player leaves and rejoins, the transformation will jump to the end without continuing mid-interpolation.

Expected behavior

Like in spawn chunks, the animation should continue animating from the point at which the player exited the world.

Steps to Reproduce

Expected Behavior (No longer works as of March 10, 2023)

  1. Ensure you are in spawn chunks

  2. Summon a display with no transformation

    /summon block_display ~ ~ ~ {block_state:{Name:"stone"}}
  3. Translate the display over 100 ticks

    /data merge entity @e[type=block_display,sort=nearest,limit=1] {transformation:{translation:[0.0f,10.0f,0.0f]},start_interpolation:0,interpolation_duration:100}
  4. Leave the game mid-interpolation and rejoin

  5. The display will continue animating mid-interpolation from where it was before exiting the world

Unexpected Behavior

  1. Teleport out of spawn chunks

    /tp ~100000 ~ ~
  2. Summon a display with no transformation

    /summon block_display ~ ~ ~ {block_state:{Name:"stone"}}
  3. Translate the display over 100 ticks

    /data merge entity @e[type=block_display,sort=nearest,limit=1] {transformation:{translation:[0.0f,10.0f,0.0f]},start_interpolation:0,interpolation_duration:100}
  4. Leave the game mid-interpolation and rejoin

  5. The display will have jumped to the target transformation instead of continuing to animate mid-interpolation

Linked issues

Comments 6

Related to MC-259926
The provided Expected Behavior steps are designed to work around this related bug by starting from default transform

I can confirm this issue.

The current expected behavior repro is blocked by MC-260208

Now they do not resume interpolation even within spawn chunks

Is this still an issue in the latest snapshot due to the spawn chunk changes?

Same behavior with forceloaded chunk would be observed as they work the same.

onnowhere

(Unassigned)

Confirmed

Platform

Normal

Commands, Data Packs, Entities

display-entities

23w06a, 23w13a, 1.20 Pre-release 4

Retrieved