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

Newly summoned display entities require a delay of about one frame on the client side to start interpolation

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • None
    • 1.21.1
    • None
    • Community Consensus
    • (Unassigned)

      Try running the commands below within the same tick with command blocks in a lag-free world. The commands are supposed to summon a display entity, and interpolate it from the default scale of [1,1,1] to [1,100,1] for 10 minutes, but when you run the commands no interpolation occurs and the scale immediately becomes [1,100,1].

      /kill @e[tag=test,type=item_display]
      /summon item_display ~ ~1 ~ {item:{id:stone},Tags:[test],Glowing:1b}
      /data merge entity @n[tag=test,type=item_display] {transformation:{scale:[1,100,1]},start_interpolation:0,interpolation_duration:12000}
      

      To get around this, display entities need to be summoned about 1-20 ticks earlier (which can be problematic for some fairly large animations because it increases the number of entities that need to be maintained and the amount of time they need to be kept). And even then, it's not a perfect solution since even with a longer delay on the server side, if the client freezes during that time it will be ignored anyway.

      In the attached video, you can see the above commands being executed. Additionally I also did an experiment with a 20 tick delay between each commands. You can see that it works normally at first, but when I hold down F3+A to cause a lag for a few seconds, it skips the interpolation that normally takes 10 minutes.

       

            Unassigned Unassigned
            Triton365 Triton365
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: