mojira.dev
MC-280245

Block and item display interpolation discontinuity

Every time the data from an item or block display is changed during its scaling interpolation, It causes a weird discontinuity in the animation

Steps to reproduce:

1- create a dummy scoreboard "CompteurTicks"

/scoreboard objectives add CompteurTicks dummy

2 - In a repeating command block always active put

/execute as @e[tag=test] at @s run function test:test

3 - Execute this command in chat:

/summon item_display ~ ~ ~5 {Tags:["test"],transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[0f,0f,0f],scale:[5f,5f,5f]},item:{id:"minecraft:dirt",count:1}} 

Observed results:

Every time data is changed with /item replace, it causes a weird discontinuity in the animation

Expected results:

It should be smooth

Linked issues

Attachments

Comments 5

Please provide the command needed to complete step 1, creating the dummy scoreboard

Create the dummy scoreboard:

/scoreboard objectives add CompteurTicks dummy

I’m not able to reproduce currently. The commands don’t seem to be doing anything to my item display.

Do I need to run these in a command block? What needs to be done? Can you record/upload a new video showing how you are reproducing this issue?

You have to perform them on several repetitive command blocks but better is to use a datapack. Here is the video, I noticed that in 1.21.5 this issue is now not occurring with “/data” but there is still the discontinuity with “/item replace entity @s contents with ice”.

[media][media]

Spoke with OP over discord and can now confirm. Thank you for helping me reproduce this.

[media][media]

IronFrite

(Unassigned)

Confirmed

Platform

Low

Commands

1.21.4, 1.21.5

Retrieved