【全網(wǎng)首發(fā)】基于命令方塊的磁懸浮礦車!

指令:
一.岡易版
1.磁懸浮
execute @e[type=minecart] ~ ~ ~ detect ~ ~-0.8 ~ magenta_glazed_terracotta 2 tp @s ~ ~ ~1 90 ~
execute @e[type=minecart] ~ ~ ~ detect ~ ~-0.8 ~ magenta_glazed_terracotta 3 tp @s ~ ~ ~-1 90 ~
execute @e[type=minecart] ~ ~ ~ detect ~ ~-0.8 ~ magenta_glazed_terracotta 4 tp @s ~1 ~ ~ 0 ~
execute @e[type=minecart] ~ ~ ~ detect ~ ~-0.8 ~ magenta_glazed_terracotta 5 tp @s ~-1 ~ ~ 0 ~
2.傳送帶
execute @e ~ ~ ~ detect ~ ~-0.8 ~ magenta_glazed_terracotta 2 tp @s ~ ~ ~1 90 ~
execute @e ~ ~ ~ detect ~ ~-0.8 ~ magenta_glazed_terracotta 3 tp @s ~ ~ ~-1 90 ~
execute @e ~ ~ ~ detect ~ ~-0.8 ~ magenta_glazed_terracotta 4 tp @s ~1 ~ ~ 0 ~
execute @e ~ ~ ~ detect ~ ~-0.8 ~ magenta_glazed_terracotta 5 tp @s ~-1 ~ ~ 0 ~
二.國際版:
1.磁懸浮
execute as @e[type=minecart] at @s if block ~ ~-0.8 ~ magenta_glazed_terracotta[“facing_direction”=2] run tp @s ~ ~ ~1 90 ~
execute as @e[type=minecart] at @s if block ~ ~-0.8 ~ magenta_glazed_terracotta[“facing_direction”=3] run tp @s ~ ~ ~-1 90 ~
execute as @e[type=minecart] at @s if block ~ ~-0.8 ~ magenta_glazed_terracotta[“facing_direction”=4] run tp @s ~1 ~ ~ 0 ~
execute as @e[type=minecart] at @s if block ~ ~-0.8 ~ magenta_glazed_terracotta[“facing_direction”=5] run tp @s ~-1 ~ ~ 0 ~
2.傳送帶
execute as @e at @s if block ~ ~-0.8 ~ magenta_glazed_terracotta[“facing_direction”=2] run tp @s ~ ~ ~1 90 ~
execute as @e at @s if block ~ ~-0.8 ~ magenta_glazed_terracotta[“facing_direction”=3] run tp @s ~ ~ ~-1 90 ~
execute as @e at @s if block ~ ~-0.8 ~ magenta_glazed_terracotta[“facing_direction”=4] run tp @s ~1 ~ ~ 0 ~
execute as @e at @s if block ~ ~-0.8 ~ magenta_glazed_terracotta[“facing_direction”=5] run tp @s ~-1 ~ ~ 0 ~