Added support for high speed rail
This commit is contained in:
6
data/tctrail/functions/tick.mcfunction
Normal file
6
data/tctrail/functions/tick.mcfunction
Normal file
@@ -0,0 +1,6 @@
|
||||
scoreboard players remove @e[type=minecart,scores={boostLength=0..}] boostLength 1
|
||||
execute as @e[type=minecart,scores={boostLength=-1}] run function tctrail:stop
|
||||
execute at @e[type=minecart,tag=boost_east,scores={boostLength=0..}] run tp @e[type=minecart,limit=1,sort=nearest] ~3.0 ~ ~
|
||||
execute at @e[type=minecart,tag=boost_west,scores={boostLength=0..}] run tp @e[type=minecart,limit=1,sort=nearest] ~-3.0 ~ ~
|
||||
execute at @e[type=minecart,tag=boost_north,scores={boostLength=0..}] run tp @e[type=minecart,limit=1,sort=nearest] ~ ~ ~-3.0
|
||||
execute at @e[type=minecart,tag=boost_south,scores={boostLength=0..}] run tp @e[type=minecart,limit=1,sort=nearest] ~ ~ ~3.0
|
||||
Reference in New Issue
Block a user