Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-259963

Display Entity incorrectly resumes last interpolation from default transformation on chunk load

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • None
    • 23w06a
    • Unconfirmed
    • (Unassigned)

      Bug

      If a display entity is animating all transformation values, and the player leaves and rejoins, the transformation will continue mid-interpolation, but assume its animation from an incorrect previous transformation state, possibly the default transformation state.

      Expected behavior

      The transformation should continue animating properly from the previous state before the player exited the world.

      Steps to Reproduce

      1. Ensure you are in spawn chunks
      2. Summon with all transformation values set

      /summon block_display ~ ~ ~ {block_state:{Name:"stone"},transformation:{translation:[-5.3f,9.0f,3.3f],scale:[1.0f,10.0f,1.0f],left_rotation:[0.3f,0.0f,0.7f,1.0f],right_rotation:[0.2f,0.4f,0.0f,1.0f]},interpolation_start:-1,interpolation_duration:0}
      

      4. Modify all transformation values and interpolate over 100 ticks

      /data merge entity @e[type=block_display,sort=nearest,limit=1] {transformation:{translation:[0.4f,0.6f,1.0f],scale:[3.2f,1.2f,0.5f],left_rotation:[0.1f,0.2f,-0.3f,1.0f],right_rotation:[0.4f,-0.3f,0.1f,1f]},interpolation_start:-1,interpolation_duration:100}
      

      5. Leave the game in mid-interpolation and rejoin
      6. The block display will be transformed incorrectly, but continue interpolating towards the target transformation, as if animating from the default transformation.

            Unassigned Unassigned
            onnowhere Onnowhere
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: