execute @e[type=mca:mca_car,c=1] ~~~ execute @s[type=mca:mca_car,c=1,r=0,tag=F1,tag=ROT180] ~~~ execute @e[type=mca:mca_car,tag=F1] ~~~ tp @s ~~~
execute @e[type=mca:mca_car,c=1] ~~~ execute @s[type=mca:mca_car,c=1,r=0,tag=F2,tag=ROT180] ~~~ execute @e[type=mca:mca_car,tag=F2] ~~~ tp @s ~~~
execute @e[type=mca:mca_car,c=1] ~~~ execute @s[type=mca:mca_car,c=1,r=0,tag=F3,tag=ROT180] ~~~ execute @e[type=mca:mca_car,tag=F3] ~~~ tp @s ~~~
execute @e[type=mca:mca_car,c=1] ~~~ execute @s[type=mca:mca_car,c=1,r=0,tag=F4,tag=ROT180] ~~~ execute @e[type=mca:mca_car,tag=F4] ~~~ tp @s ~~~
execute @e[type=mca:mca_car,c=1] ~~~ execute @s[type=mca:mca_car,c=1,r=0,tag=F5,tag=ROT180] ~~~ execute @e[type=mca:mca_car,tag=F5] ~~~ tp @s ~~~
execute @e[type=mca:mca_car,c=1] ~~~ execute @s[type=mca:mca_car,c=1,r=0,tag=F6,tag=ROT180] ~~~ execute @e[type=mca:mca_car,tag=F6] ~~~ tp @s ~~~
execute @e[type=mca:mca_car,c=1] ~~~ execute @s[type=mca:mca_car,c=1,r=0,tag=F7,tag=ROT180] ~~~ execute @e[type=mca:mca_car,tag=F7] ~~~ tp @s ~~~
execute @e[type=mca:mca_car,c=1] ~~~ execute @s[type=mca:mca_car,c=1,r=0,tag=F8,tag=ROT180] ~~~ execute @e[type=mca:mca_car,tag=F8] ~~~ tp @s ~~~
execute @e[type=mca:mca_car,c=1] ~~~ execute @s[type=mca:mca_car,c=1,r=0,tag=F9,tag=ROT180] ~~~ execute @e[type=mca:mca_car,tag=F9] ~~~ tp @s ~~~
execute @e[type=mca:mca_car,c=1] ~~~ execute @s[type=mca:mca_car,c=1,r=0,tag=F10,tag=ROT180] ~~~ execute @e[type=mca:mca_car,tag=F10] ~~~ tp @s ~~~
execute @e[type=mca:mca_car,c=1] ~~~ execute @s[type=mca:mca_car,c=1,r=0,tag=ROT180,tag=!F1,tag=!F2,tag=!F3,tag=!F4,tag=!F5,tag=!F6,tag=!F7,tag=!F8,tag=!F9,tag=!F10] ~~~ tp @s ~~~
#
execute @e[type=mca:mca_car,c=1] ~~~ execute @s[type=mca:mca_car,c=1,r=0,tag=F1,tag=!ROT180] ~~~ execute @e[type=mca:mca_car,tag=F1] ~~~ tp @s ~~~
execute @e[type=mca:mca_car,c=1] ~~~ execute @s[type=mca:mca_car,c=1,r=0,tag=F2,tag=!ROT180] ~~~ execute @e[type=mca:mca_car,tag=F2] ~~~ tp @s ~~~
execute @e[type=mca:mca_car,c=1] ~~~ execute @s[type=mca:mca_car,c=1,r=0,tag=F3,tag=!ROT180] ~~~ execute @e[type=mca:mca_car,tag=F3] ~~~ tp @s ~~~
execute @e[type=mca:mca_car,c=1] ~~~ execute @s[type=mca:mca_car,c=1,r=0,tag=F4,tag=!ROT180] ~~~ execute @e[type=mca:mca_car,tag=F4] ~~~ tp @s ~~~
execute @e[type=mca:mca_car,c=1] ~~~ execute @s[type=mca:mca_car,c=1,r=0,tag=F5,tag=!ROT180] ~~~ execute @e[type=mca:mca_car,tag=F5] ~~~ tp @s ~~~
execute @e[type=mca:mca_car,c=1] ~~~ execute @s[type=mca:mca_car,c=1,r=0,tag=F6,tag=!ROT180] ~~~ execute @e[type=mca:mca_car,tag=F6] ~~~ tp @s ~~~
execute @e[type=mca:mca_car,c=1] ~~~ execute @s[type=mca:mca_car,c=1,r=0,tag=F7,tag=!ROT180] ~~~ execute @e[type=mca:mca_car,tag=F7] ~~~ tp @s ~~~
execute @e[type=mca:mca_car,c=1] ~~~ execute @s[type=mca:mca_car,c=1,r=0,tag=F8,tag=!ROT180] ~~~ execute @e[type=mca:mca_car,tag=F8] ~~~ tp @s ~~~
execute @e[type=mca:mca_car,c=1] ~~~ execute @s[type=mca:mca_car,c=1,r=0,tag=F9,tag=!ROT180] ~~~ execute @e[type=mca:mca_car,tag=F9] ~~~ tp @s ~~~
execute @e[type=mca:mca_car,c=1] ~~~ execute @s[type=mca:mca_car,c=1,r=0,tag=F10,tag=!ROT180] ~~~ execute @e[type=mca:mca_car,tag=F10] ~~~ tp @s ~~~
execute @e[type=mca:mca_car,c=1] ~~~ execute @s[type=mca:mca_car,c=1,r=0,tag=!ROT180,tag=!F1,tag=!F2,tag=!F3,tag=!F4,tag=!F5,tag=!F6,tag=!F7,tag=!F8,tag=!F9,tag=!F10] ~~~ tp @s ~~~
#
#
execute @e[type=mca:mca_car,c=1] ~~~ execute @s[type=mca:mca_car,c=1,r=0,tag=F1,tag=ROT180] ~~~ execute @e[type=mca:mca_car,tag=F1] ~~~ tag @s add ROT_X
execute @e[type=mca:mca_car,c=1] ~~~ execute @s[type=mca:mca_car,c=1,r=0,tag=F2,tag=ROT180] ~~~ execute @e[type=mca:mca_car,tag=F2] ~~~ tag @s add ROT_X
execute @e[type=mca:mca_car,c=1] ~~~ execute @s[type=mca:mca_car,c=1,r=0,tag=F3,tag=ROT180] ~~~ execute @e[type=mca:mca_car,tag=F3] ~~~ tag @s add ROT_X
execute @e[type=mca:mca_car,c=1] ~~~ execute @s[type=mca:mca_car,c=1,r=0,tag=F4,tag=ROT180] ~~~ execute @e[type=mca:mca_car,tag=F4] ~~~ tag @s add ROT_X
execute @e[type=mca:mca_car,c=1] ~~~ execute @s[type=mca:mca_car,c=1,r=0,tag=F5,tag=ROT180] ~~~ execute @e[type=mca:mca_car,tag=F5] ~~~ tag @s add ROT_X
execute @e[type=mca:mca_car,c=1] ~~~ execute @s[type=mca:mca_car,c=1,r=0,tag=F6,tag=ROT180] ~~~ execute @e[type=mca:mca_car,tag=F6] ~~~ tag @s add ROT_X
execute @e[type=mca:mca_car,c=1] ~~~ execute @s[type=mca:mca_car,c=1,r=0,tag=F7,tag=ROT180] ~~~ execute @e[type=mca:mca_car,tag=F7] ~~~ tag @s add ROT_X
execute @e[type=mca:mca_car,c=1] ~~~ execute @s[type=mca:mca_car,c=1,r=0,tag=F8,tag=ROT180] ~~~ execute @e[type=mca:mca_car,tag=F8] ~~~ tag @s add ROT_X
execute @e[type=mca:mca_car,c=1] ~~~ execute @s[type=mca:mca_car,c=1,r=0,tag=F9,tag=ROT180] ~~~ execute @e[type=mca:mca_car,tag=F9] ~~~ tag @s add ROT_X
execute @e[type=mca:mca_car,c=1] ~~~ execute @s[type=mca:mca_car,c=1,r=0,tag=F10,tag=ROT180] ~~~ execute @e[type=mca:mca_car,tag=F10] ~~~ tag @s add ROT_X
execute @e[type=mca:mca_car,c=1] ~~~ execute @s[type=mca:mca_car,c=1,r=0,tag=ROT180,tag=!F1,tag=!F2,tag=!F3,tag=!F4,tag=!F5,tag=!F6,tag=!F7,tag=!F8,tag=!F9,tag=!F10] ~~~ tag @s add ROT_X
#
execute @e[type=mca:mca_car,c=1] ~~~ execute @s[type=mca:mca_car,c=1,r=0,tag=F1,tag=ROT180] ~~~ execute @e[type=mca:mca_car,tag=F1] ~~~ tag @s remove ROT180
execute @e[type=mca:mca_car,c=1] ~~~ execute @s[type=mca:mca_car,c=1,r=0,tag=F2,tag=ROT180] ~~~ execute @e[type=mca:mca_car,tag=F2] ~~~ tag @s remove ROT180
execute @e[type=mca:mca_car,c=1] ~~~ execute @s[type=mca:mca_car,c=1,r=0,tag=F3,tag=ROT180] ~~~ execute @e[type=mca:mca_car,tag=F3] ~~~ tag @s remove ROT180
execute @e[type=mca:mca_car,c=1] ~~~ execute @s[type=mca:mca_car,c=1,r=0,tag=F4,tag=ROT180] ~~~ execute @e[type=mca:mca_car,tag=F4] ~~~ tag @s remove ROT180
execute @e[type=mca:mca_car,c=1] ~~~ execute @s[type=mca:mca_car,c=1,r=0,tag=F5,tag=ROT180] ~~~ execute @e[type=mca:mca_car,tag=F5] ~~~ tag @s remove ROT180
execute @e[type=mca:mca_car,c=1] ~~~ execute @s[type=mca:mca_car,c=1,r=0,tag=F6,tag=ROT180] ~~~ execute @e[type=mca:mca_car,tag=F6] ~~~ tag @s remove ROT180
execute @e[type=mca:mca_car,c=1] ~~~ execute @s[type=mca:mca_car,c=1,r=0,tag=F7,tag=ROT180] ~~~ execute @e[type=mca:mca_car,tag=F7] ~~~ tag @s remove ROT180
execute @e[type=mca:mca_car,c=1] ~~~ execute @s[type=mca:mca_car,c=1,r=0,tag=F8,tag=ROT180] ~~~ execute @e[type=mca:mca_car,tag=F8] ~~~ tag @s remove ROT180
execute @e[type=mca:mca_car,c=1] ~~~ execute @s[type=mca:mca_car,c=1,r=0,tag=F9,tag=ROT180] ~~~ execute @e[type=mca:mca_car,tag=F9] ~~~ tag @s remove ROT180
execute @e[type=mca:mca_car,c=1] ~~~ execute @s[type=mca:mca_car,c=1,r=0,tag=F10,tag=ROT180] ~~~ execute @e[type=mca:mca_car,tag=F10] ~~~ tag @s remove ROT180
execute @e[type=mca:mca_car,c=1] ~~~ execute @s[type=mca:mca_car,c=1,r=0,tag=ROT180,tag=!F1,tag=!F2,tag=!F3,tag=!F4,tag=!F5,tag=!F6,tag=!F7,tag=!F8,tag=!F9,tag=!F10] ~~~ tag @s remove ROT180
#
execute @e[type=mca:mca_car,c=1] ~~~ execute @s[type=mca:mca_car,c=1,r=0,tag=F1,tag=!ROT180,tag=!ROT_X] ~~~ execute @e[type=mca:mca_car,tag=F1] ~~~ tag @s add ROT180
execute @e[type=mca:mca_car,c=1] ~~~ execute @s[type=mca:mca_car,c=1,r=0,tag=F2,tag=!ROT180,tag=!ROT_X] ~~~ execute @e[type=mca:mca_car,tag=F2] ~~~ tag @s add ROT180
execute @e[type=mca:mca_car,c=1] ~~~ execute @s[type=mca:mca_car,c=1,r=0,tag=F3,tag=!ROT180,tag=!ROT_X] ~~~ execute @e[type=mca:mca_car,tag=F3] ~~~ tag @s add ROT180
execute @e[type=mca:mca_car,c=1] ~~~ execute @s[type=mca:mca_car,c=1,r=0,tag=F4,tag=!ROT180,tag=!ROT_X] ~~~ execute @e[type=mca:mca_car,tag=F4] ~~~ tag @s add ROT180
execute @e[type=mca:mca_car,c=1] ~~~ execute @s[type=mca:mca_car,c=1,r=0,tag=F5,tag=!ROT180,tag=!ROT_X] ~~~ execute @e[type=mca:mca_car,tag=F5] ~~~ tag @s add ROT180
execute @e[type=mca:mca_car,c=1] ~~~ execute @s[type=mca:mca_car,c=1,r=0,tag=F6,tag=!ROT180,tag=!ROT_X] ~~~ execute @e[type=mca:mca_car,tag=F6] ~~~ tag @s add ROT180
execute @e[type=mca:mca_car,c=1] ~~~ execute @s[type=mca:mca_car,c=1,r=0,tag=F7,tag=!ROT180,tag=!ROT_X] ~~~ execute @e[type=mca:mca_car,tag=F7] ~~~ tag @s add ROT180
execute @e[type=mca:mca_car,c=1] ~~~ execute @s[type=mca:mca_car,c=1,r=0,tag=F8,tag=!ROT180,tag=!ROT_X] ~~~ execute @e[type=mca:mca_car,tag=F8] ~~~ tag @s add ROT180
execute @e[type=mca:mca_car,c=1] ~~~ execute @s[type=mca:mca_car,c=1,r=0,tag=F9,tag=!ROT180,tag=!ROT_X] ~~~ execute @e[type=mca:mca_car,tag=F9] ~~~ tag @s add ROT180
execute @e[type=mca:mca_car,c=1] ~~~ execute @s[type=mca:mca_car,c=1,r=0,tag=F10,tag=!ROT180,tag=!ROT_X] ~~~ execute @e[type=mca:mca_car,tag=F10] ~~~ tag @s add ROT180
execute @e[type=mca:mca_car,c=1] ~~~ execute @s[type=mca:mca_car,c=1,r=0,tag=!ROT180,tag=!ROT_X,tag=!F1,tag=!F2,tag=!F3,tag=!F4,tag=!F5,tag=!F6,tag=!F7,tag=!F8,tag=!F9,tag=!F10] ~~~ tag @s add ROT180
#
execute @e[tag=ROT180,c=1] ~ ~ ~ function dw
execute @e[tag=ROT_X,c=1] ~ ~ ~ function up
tag @e[type=mca:mca_car] remove ROT_X
tp @s ~ ~ -128 ~
kill @s