minerace/data/emk/functions/kart/moveyd.mcfunction

9 lines
958 B
Mcfunction

scoreboard players set #tmp emk-id 0
execute unless block ~-.5 ~-.01 ~-.5 #emk:transparent unless block ~.5 ~-.01 ~-.5 #emk:transparent unless block ~-.5 ~-.01 ~.5 #emk:transparent unless block ~.5 ~-.01 ~.5 #emk:transparent run scoreboard players set #tmp emk-id 1
#execute if score #tmp emk-id matches 1 unless block ~-.5 ~.49 ~-.5 #emk:half unless block ~.5 ~.49 ~-.5 #emk:half unless block ~-.5 ~.49 ~.5 #emk:half unless block ~.5 ~.49 ~.5 #emk:half run scoreboard players set #tmp emk-id 1
execute if score #tmp emk-id matches 1 run scoreboard players set @s emk-ymov 0
execute if score #tmp emk-id matches 1 run scoreboard players set @s emk-distancey 0
execute if score #tmp emk-id matches 1 run tag @s add emk-onground
execute if score #tmp emk-id matches 0 run scoreboard players add @s emk-distancey 1000
execute if score #tmp emk-id matches 0 run tp @s ~ ~-.05 ~
execute if score @s emk-distancey matches ..-1000 at @s run function emk:kart/moveyd