How would I teleport a player into a minecart or boat?
And I don't mean in the same block as, I mean actually in it.
2 Answers
This is actually possible with a BE-exclusive command, /ride. Here is the basic syntax that you'll need:
ride <riders: target> start_riding <ride: target> [teleportRules: TeleportRules] [howToFill: FillType]riders: The targets you want to begin riding on top of the ride.ride: The ride that you wantridersto begin riding on top of.
Sample command:
ride @p start_riding @e[type=minecart] teleport_rider 5 Edit: See this answer, it’s better
Sorry, I'm afraid you can’t. You can however, just tell the player to right-click through /tellraw and hope they listen:
/tellraw @p {"rawtext":[{"text":"Get in the boat."}]} 5