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

Interpolation animation of Display entities is non-deterministic

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 23w06a, 23w07a, 1.19.4 Pre-release 1, 1.19.4 Release Candidate 1, 1.19.4 Release Candidate 3, 1.19.4, 1.20 Pre-release 4, 1.20.3 Release Candidate 1, 1.21.1
    • None
    • Confirmed
    • Commands, Entities
    • Normal
    • Platform

      The bug:

      Interpolation animation of Display entities is non-deterministic for map and pack creators. That is, creators cannot guarantee that players will see the animation they want players to see. For example,

      • Players who enter a server at different times may see different animations
      • Players who move back and forth (which makes chunks unloaded and loaded) may see weird animations
      • Players who exit and re-enter the level may see wrong animations

      How to reproduce:

      For convenience, I'll give a way that can be reproduced in the single-player world:

      • Summon a small Text Display with nbt:
        • /execute summon text_display run data merge entity @s {text:'"test"',billboard:"center"}
          
      • Change the size and start interpolation:
        • /data merge entity @e[type=minecraft:text_display,limit=1] {background:4294901760L,transformation:{scale:[10.0,10.0,10.0]},start_interpolation:0,interpolation_duration:1000}
          
      • Notice the text is scaling. When scaling, exit the world and re-enter it.
      • Notice the animation will jump to the end without continuing mid-interpolation.

      Analyse:

      The "previous" data of the entity is saved only on the client, which means that the server has no control over the data. This is a nightmare for content creators, as they have absolutely no guarantee that players will see the correct animation.

        1. After rejoining (1.21.1).png
          236 kB
          BugTracker
        2. Scaling (1.21.1).png
          508 kB
          BugTracker

            Unassigned Unassigned
            Chixvv Dl
            Votes:
            15 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated:
              CHK: