mojira.dev
MC-272913

The Rotation of the item_display rendered model is inaccurate

  1. What I expected to happen was...:
    When I use  /data  or /tp commands to modify it from player's Rotation datas ,the Rotation of the item_display are the same as the players. However ,the rendered model is different from the actual angle.

What actually happened was...:
The model is not rendered correctly and "jumps" when moving the perspective.But if I use / data get entity @e[tag=test,limit=1] Rotation and its the same as the player's

Steps to Reproduce:
1. Apply the attached resource pack
2. Commands are as follow

/summon item_display ~ ~ ~ {Tags:["test"],item:{id:"minecraft:carrot_on_a_stick",count:1b,components:{"minecraft:custom_model_data":1001}}}

3.repeating_command_block:

/execute as @a at @s anchored eyes positioned ^ ^-0.35 ^1 run tp @e[tag=test] ~ ~ ~ ~ ~

4.chain_command_block

/execute as @e[tag=test] at @s rotated as en_book run tp @s ~ ~ ~ ~ ~

5. if "billboard" change to "center",the model is correct.

6.There will be an offset every time I move the model

Attachments

Comments 7

Please update the description to include steps to reproduce this issue, as well as expected VS observed results.

Please also attach any needed datapacks, resourcepacks, screenshots, videos or worlds needed to help reproduce this issue.

Descriptions and the Resourepack have been updated,please confirm

I'm still unclear to what the bug being reported is here, and what the expected behaviour is VS what the commands currently do.

Please record a video of this happening and attach it to this report.
If you are on Windows, you can use Windows+Alt+R to open a built-in app for recording game footage.
If you are on Mac (Mojave or later), you can use Shift+Command+5 to open a built-in app for recording your screen.
In case you don't have a program to record videos, we recommend using the free recording software OBS.
In case the resulting video file is too large to be uploaded to the bug tracker directly, please upload it elsewhere (e.g. as unlisted video on YouTube) and link to it here.

This issue is being temporarily resolved as Awaiting Response. Once the requested information has been delivered, the report will be reopened automatically.

Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support (Technical Issues) – 📧 Microsoft Support (Account Issues)
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki

I just updated the Multi-part archive of the video, I don't know if this is a bug. The model is unstable in the video when billboard was set to "fixed"

Thanks. I've moved this up to confirmed. I've also reuploaded the videos as singular videos now as I managed to reduce the file size whilst maintaining quality.

This is likely the result of Minecraft representing rotations in the ClientboundMoveEntityPacket as a single byte with 256 values. In simple terms, it means that the minimum angle between rotations is 1.4 degrees.

For example, if the player's yaw is 137.0 degrees, the rotation of the entity will appear to be 136.40625.

If this is indeed the cause, the only fix would be to change the representation of angles in the move/teleport entity packets, but this has it's own drawbacks

Thanks for your explanation. I understand it, but I wonder what drawbacks would be. If we change the single byte to nx360 like 256x360 can we solve this problem?

en___book

(Unassigned)

Confirmed

Platform

Normal

Commands, Networking

1.20.6

Retrieved