Place a villager in a boat and move it closer to the rails. Then, place a minecart on the rails and push it toward the villager. Now, the villager is simultaneously in both the boat and the minecart.
As a result, it moves in the direction of the minecart. The direction can be changed by pushing the minecart.
Environment
Windows 11, Java Edition 1.20.5
Java 17, Radeon RX 570, 16GB RAM
Singleplayer, Render Distance: 8 chunks
No mods, no resource packs
Linked issues
duplicates 1
Attachments
Comments 4

[media]
Duplicate of MC-113871