Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Vanilla end teleportation #110

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

sofianedjerbi
Copy link
Contributor

Player should be teleported to Vec3.atBottomCenterOf(targetPos.below());
Other entities should be teleported to Vec3.atBottomCenterOf(targetPos);
And end-teleportation keep velocity (this.getDeltaMovement)

Player should be teleported to Vec3.atBottomCenterOf(targetPos.below());
Other entities should be teleported to Vec3.atBottomCenterOf(targetPos);
And end-teleportation keep velocity (this.getDeltaMovement)
@Spottedleaf
Copy link
Member

The changes were done to mirror the player teleportation logic for all entities. This is why the velocity is set to zero and why they are all teleported to the bottom. Is there any reason this behavior is bad?

@sofianedjerbi
Copy link
Contributor Author

sofianedjerbi commented Jul 2, 2023

Settings velocity to 0 & position to platform might break some wither + snowball obsidian farms

Euphillya added a commit to Euphillya/TenseiMC that referenced this pull request Aug 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants