Added support for high speed rail

This commit is contained in:
2025-06-22 21:54:16 +02:00
parent 9e1e85623b
commit 706d803411
12 changed files with 59 additions and 9 deletions

View File

@@ -0,0 +1,9 @@
execute at @e[type=minecart,scores={boostLength=-1},tag=boost_east] run data merge entity @e[type=minecart,sort=nearest,limit=1] {Motion:[1.0,0.0,0.0]}
execute at @e[type=minecart,scores={boostLength=-1},tag=boost_west] run data merge entity @e[type=minecart,sort=nearest,limit=1] {Motion:[-1.0,0.0,0.0]}
execute at @e[type=minecart,scores={boostLength=-1},tag=boost_north] run data merge entity @e[type=minecart,sort=nearest,limit=1] {Motion:[0.0,0.0,-1.0]}
execute at @e[type=minecart,scores={boostLength=-1},tag=boost_south] run data merge entity @e[type=minecart,sort=nearest,limit=1] {Motion:[0.0,0.0,1.0]}
tag @e[type=minecart,scores={boostLength=-1}] remove boost_east
tag @e[type=minecart,scores={boostLength=-1}] remove boost_west
tag @e[type=minecart,scores={boostLength=-1}] remove boost_north
tag @e[type=minecart,scores={boostLength=-1}] remove boost_south
scoreboard players reset @e[type=minecart,scores={boostLength=-1}]