Teleport player into minecart or boat
Solution 1:
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 wantriders
to begin riding on top of.
Sample command:
ride @p start_riding @e[type=minecart] teleport_rider