Hello,
This command works to test whether a player is in the minecart or not :
/testfor @p {RootVehicle:{Entity:{id:"minecraft:minecart"}}}
This command works to advance the minecart of 5 blocks, with or without the player in :
(see the picture number 1)
/tp @e[type=Minecart] ~-5 ~ ~
This command works to change the rail minecart, with or without the player in :
(see the picture number 1)
/tp @e[type=Minecart] ~ ~ ~-2
When i teleport the minecart alone over a long distance, it works.
The minecart is well placed on the rails more than 100 blocks from where it was :
(see the picture number 2)
/teleport @e[type=Minecart] -323 11 419
When i teleport the minecart with me in, on a long distance, it doesn't work :
(see the picture number 3)
/teleport @e[type=Minecart] -323 11 419
Since i can't move and the minecart doesn't answer to the keys. So, i decide to delete it !.
Just after executing the command, i appear at my starting point but with the difference that the block below me is shifted of one block to the right !?.
(see the picture number 4)
/kill @e[type=Minecart]
Attachments
Comments 3
I've come across this issue on the latest stable release (1.14.4) - trying to teleport a minecart+player long distance results in the player remaining in the seated position with a "ghost" minecart at the original teleport point - cannot exit the minecart by conventional means, and if exited by other means (ender pearl or teleport) the ghost minecart vanishes. Seems to be able to travel a short distance over 100 blocks in each direction before it fails
I can confirm peter shaw's observation for 1.14.4: Teleporting minecart and player together over a long distance will teleport the minecart, but leave the player in a phantom minecart he can't leave without teleporting/ender pearl on the original location. The issue is therefore not fixed as it is claimed here.
Please check if that's still an issue for you in the latest 1.14.4 stable release or the latest 1.15 development snapshot.