Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Add basic support for the 1.21.2 minecart experiment #5134

Merged
merged 7 commits into from
Feb 12, 2025

Conversation

eclipseisoffline
Copy link
Contributor

This PR adds a simple packet translator for the ClientboundMoveMinecartPacket. This packet, introduced in Minecraft 1.21.2, is used to move minecarts around when the new minecart experiment is enabled. Without this PR, minecarts using the new minecart behaviour don't move at all on Bedrock.

Since Bedrock doesn't have a similar minecart experiment and doesn't support entity interpolation steps in the way they are described in this packet, the translator simply takes the last interpolation step and sends its data to the Bedrock client. This isn't a perfect solution, and especially in turns minecarts don't move perfectly along the rails, but it seems this is the best it gets for now.

Note: I've also tried interpolating between the steps on Geyser, which didn't work much better since I was unable to interpolate between ticks, and I tried sending the step with the biggest weight instead of the last interpolation step, which also didn't work much better.

@dom64
Copy link

dom64 commented Dec 9, 2024

8mb.video-cn9-ueBqm3dK.mp4

Works well so far

@onebeastchris onebeastchris linked an issue Feb 11, 2025 that may be closed by this pull request
Copy link
Member

@onebeastchris onebeastchris left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@onebeastchris onebeastchris merged commit b0bf867 into GeyserMC:master Feb 12, 2025
2 checks passed
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Experimental minecarts are unusable on bedrock
4 participants