制作动作游戏(大多为第一人称)特效中常见的断崖翻越。
断崖转自MC Labs 15,本人完善,其他部分原创。
展示&原理
http://v.youku.com/v_show/id_XNzQ3NTAyMzA4.html
按照出场顺序的指令:
- /summon Boat ~0.9 ~-1 ~
- /summon Boat ~0.9 ~-1 ~ {CustomName:"broken walls"}
- /summon Boat ~0.9 ~-1 ~ {CustomName:"broken walls"}
- /setblock ~ ~ ~-2 air
- /summon Boat ~ ~ ~
- /fill x y z x1 y1 z1 cobblestone
- /fill ~1 ~ ~ ~1 ~ ~5 air
- /fill ~-1 ~ ~ ~-1 ~ ~5 redstone_block
- /summon FallingSand ~5.3 ~-1 ~ {Block:"minecraft:stone",Time:0}
- /testfor @p
- /kill @e[type=Boat,name="broken walls"]
- /setblock 重置区坐标 redstone_block
- /testfor @p[断崖坐标1,r=0]
- /testfor @p[断崖坐标2,r=0]
- /testfor @p[断崖坐标3,r=0]
- /testfor @p[断崖坐标4,r=0]
- /testfor @p[断崖坐标5,r=0]
- /setblock 高频坐标 redstone_block
- /title @p times 20 80 20
- /title @p title {text:"Wait...",color:dark_red,bold:true}
- /title @p subtitle {text:"There is a cliff in front of you.",color:gold,bold:true,underlined:true}
- /title @p subtitle {text:"Please to side step.",color:gold,bold:true,underlined:true}
- /tp @p ~ ~ ~ -90 30
- /testfor @p[终点坐标,r=0]
- /setblock 高频坐标 air
- /tellraw @p {text:"Success crossed the cliff.",color:gold,bold:true}
- /kill @e[type=Boat,name="broken walls"]
- /setblock 重置区坐标 redstone_block
- /testfor @p[rym=1,ry=179]
- /tp @p ~0.5 ~ ~
- /tellraw @p {text:"You didn't side step,so you had fallen down.",color:red}
- /setblock 347 52 -185 air
- /kill @e[type=Boat,name="broken walls"]
- /setblock 重置区坐标 redstone_block
下载地址(仅供体验与研究)
@songfeitong @tyson @我的世界sun123 @PotatoMaster101 @ghyzhi10086 @审奥不解释 @67880371 @kongbaiyo @zhjjhz
[groupid=546]Command Block Logic[/groupid]