@MileiSi_VLLC
i used:
/execute as
@e
[type=ender_dragon,limit=1] at
@s
run ride
@s
mount
@e
[type=minecart,limit=1,distance=..10]
put that in a repeating cmd block and the dragon will mount any minecart 10 blocks away from it!
there may be a typo, i wrote that on phone lol