Skip to content

Allow players with passengers to be teleported via API - #14383

Open
Warriorrrr wants to merge 1 commit into
PaperMC:mainfrom
Warriorrrr:feat/allow-player-tp-with-passenger
Open

Warriorrrr wants to merge 1 commit into
PaperMC:mainfrom
Warriorrrr:feat/allow-player-tp-with-passenger

Conversation

@Warriorrrr

@Warriorrrr Warriorrrr commented Oct 14, 2026 •

Copy link
Copy Markdown
Member

I've tested these changes and have not found any weird behavior mentioned in the comment, a cross dimension teleport with passengers correctly dismounts them just like /tp or going through a portal would.

This makes things easier for plugins that add passengers to players, as they'll no longer prevent other plugins from teleporting such players, but they're still responsible for removing or re-adding the passengers to the player after a dimension change. This is pretty easily achievable through the EntityDismountEvent & PlayerChangedWorldEvent.

Supersedes #14184
Closes #12093

@papermc-projects papermc-projects Bot moved this from Awaiting review to Delayed approval in Paper PR Queue Oct 16, 2026
@masmc05

masmc05 commented Oct 16, 2026

Copy link
Copy Markdown
Contributor

but they're still responsible for removing or re-adding the passengers to the player after a dimension change.

Shouldn't this be said a bit more explicitly on both teleports as well as addPassenger that behaviour on players differs from other entities, and on players specifically plugins would need to implement that?

@lynxplay

Copy link
Copy Markdown
Contributor

100% on the end of masmc here, tho the hopes were that we'd be able to implement cross dimensional teleportation including passengers for players. The teleport transition already has a field to check if the teleport is API introduced so we can guard any non vanilla behaviour there for API calls only.

@papermc-projects papermc-projects Bot moved this from Delayed approval to Full approval in Paper PR Queue Oct 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Full approval

Development

Successfully merging this pull request may close these issues.

Add PlayerTeleportFailedEvent

4 participants