ViaVersion / ViaBackwards

Allows the connection of older clients to newer server versions for Minecraft servers.
https://hangar.papermc.io/ViaVersion/ViaBackwards
GNU General Public License v3.0
459 stars 87 forks source link

Emulate block and item display entities in 1.19.4->1.19.3 #871

Open FlorianMichael opened 1 month ago

FlorianMichael commented 1 month ago

This PR adds very basic handling for block and item displays.

Item displays: 2024-08-17_21 39 27 (Implemented by setting the item as head armor on the invisible armor stand)

Block displays: 2024-08-17_21 40 12 (Implemented by spawning a falling block and attaching it as passenger onto the armor stand to prevent position/rotation tracking)

Supersedes https://github.com/ViaVersion/ViaBackwards/pull/538

kennytv commented 1 month ago

I don't actually see the falling block when summoning any block display (/summon block_display ~ ~2 ~ {transformation:{left_rotation:[12f,0f,0f,0f],right_rotation:[30f,0f,0f,0f],scale:[2f,1f,1f],translation:[0f,0f,0f]},block_state:{Name:acacia_log}} and joined with 1.16.5)

FlorianMichael commented 1 month ago

It should work now

kennytv commented 1 month ago

Works when spawned in next to you, but not when you join the server with one present or go in and out of range