我的世界命令方块自动建造铁轨指令?
命令方块的玩法也是比较好玩的,可以通过命令来创造世界。先放一个命令方块,命令方块上放一个按钮
命令方块代码:
/summon MinecartCommandBlock ~-1 ~ ~ {Riding:{id:"MinecartCommandBlock",Riding:{id:"MinecartCommandBlock",Riding:{id:"MinecartCommandBlock",Command:"/setblock ~-1 ~1 ~ 0 0 destroy"},Command:"/setblock ~-1 ~ ~ 0 0 destroy"},Command:"/setblock ~-1 ~-2 ~ 152 0 replace"},Command:"/setblock ~-1 ~-1 ~ 157 0 replace"}
在命令方块的W方向 放一块红石,红石上方放一个激活铁轨
再右击按钮激活命令方块
激活后会出现命令矿车,推一下命令矿车试试
4个方向不同的代码(往哪个方向挖就用哪个方向的代码):
W方向:
/summon MinecartCommandBlock ~-1 ~ ~ {Riding:{id:"MinecartCommandBlock",Riding:{id:"MinecartCommandBlock",Riding:{id:"MinecartCommandBlock",Command:"/setblock ~-1 ~1 ~ 0 0 destroy"},Command:"/setblock ~-1 ~ ~ 0 0 destroy"},Command:"/setblock ~-1 ~-2 ~ 152 0 replace"},Command:"/setblock ~-1 ~-1 ~ 157 0 replace"}
S方向:
/summon MinecartCommandBlock ~ ~ ~1 {Riding:{id:"MinecartCommandBlock",Riding:{id:"MinecartCommandBlock",Riding:{id:"MinecartCommandBlock",Command:"/setblock ~ ~1 ~1 0 0 destroy"},Command:"/setblock ~ ~ ~1 0 0 destroy"},Command:"/setblock ~ ~-2 ~1 152 0 replace"},Command:"/setblock ~ ~-1 ~1 157 0 replace"}
E方向:
/summon MinecartCommandBlock ~1 ~ ~ {Riding:{id:"MinecartCommandBlock",Riding:{id:"MinecartCommandBlock",Riding:{id:"MinecartCommandBlock",Command:"/setblock ~1 ~1 ~ 0 0 destroy"},Command:"/setblock ~1 ~ ~ 0 0 destroy"},Command:"/setblock ~1 ~-2 ~ 152 0 replace"},Command:"/setblock ~1 ~-1 ~ 157 0 replace"}
N方向:
/summon MinecartCommandBlock ~ ~ ~-1 {Riding:{id:"MinecartCommandBlock",Riding:{id:"MinecartCommandBlock",Riding:{id:"MinecartCommandBlock",Command:"/setblock ~ ~1 ~-1 0 0 destroy"},Command:"/setblock ~ ~ ~-1 0 0 destroy"},Command:"/setblock ~ ~-2 ~-1 152 0 replace"},Command:"/setblock ~ ~-1 ~-1 157 0 replace"}
以上就是小编为您带来的关于“我的世界命令方块自动建造铁轨指令?”的相关内容,希望这篇文章能够帮助到大家。