Fix display entities for pre 1.19.4 clients
TODO:
- [x] Fix text display
- [x] Fix item display
- [ ] Fix block display
- [ ] Transformation (only translation) support
- [ ] Interpolation delay and duration support (might be moved into another PR)
If you have any idea how can i set block for a falling block using metadata, please let me know
When I change rewriting block display from falling block to armor stand, it shows, any idea why???
The falling block entity doesn't use the metadata system to define its blockstate. One idea would be to cancel the spawn packet and send a falling block spawn when you receive the blockstate metadata.
Okay, but how can I send a falling block spawn
You have to build the packet from scratch using PacketWrapper. I think you can find some examples in other places of the source-code.
Unfortunately i still don't know how to do this. If I won't find solution, I'll just leave it without block display fix
Finally, I almost fixed block display, but I don't know how can I set and read metadata in spawn entity packet handler
Also, display entities have 0.5 'added' to x and z position, and when I add it to this falling block, after some time it removes this position change
wrapper.set(Type.DOUBLE, 0, wrapper.get(Type.DOUBLE, 0) + 0.5);
wrapper.set(Type.DOUBLE, 2, wrapper.get(Type.DOUBLE, 2) + 0.5);
As I see, entity meta is sent after spawn entity, so idk how can I finish fixing block display entity
Are you still working on this PR / planning on updating it?
I totally forgot about this PR because of problems I had, I can try to finish it