Turn into passenger on collision (fabric 1.18.2) [closed]

Turn into passenger on collision (fabric 1.18.2) [closed] - Man Holding the Steering Wheel While Driving

I have two custom entities. I want that when A bumps into B, A will start riding B (sort of like passengers with /summon command). How would I code that? I tried looking into boat mechanics but I didn't understand much.

EDIT: I forgot to mention a pretty important element: I am coding a Fabric mod.






Pictures about "Turn into passenger on collision (fabric 1.18.2) [closed]"

Turn into passenger on collision (fabric 1.18.2) [closed] - Smiling multiracial classmates turning pages of file on folder with homework task near university
Turn into passenger on collision (fabric 1.18.2) [closed] - Man in White Long Sleeve Shirt Sitting on White Chair
Turn into passenger on collision (fabric 1.18.2) [closed] - Green and Brown Spin Top





New PaperMC crash exploit! [Minecraft 1.18.2] (Read description)




Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.

Images: Tobi, Armin Rimoldi, cottonbro, Pixabay