戰(zhàn)橋指令教程,全是干貨

50贊發(fā)指令
開始學習前先創(chuàng)建兩個計分板
/scoreboard objectives add 戰(zhàn)橋 dummy
/scoreboard objectives add 分數(shù) dumtag @r【tag=!b,r=10】 add a
tag @r【tag=!a,r=10】 add b
say §l§4紅隊為 | §e@a【tag=a】
say §l§b藍隊為 | §e@a【tag=b】
tp @a【tag=a】 13 8 -227
tp @a【tag=b】 56 8 -227
scoreboard players set @a【tag=a】 戰(zhàn)橋 10
scoreboard players set @a【tag=b】 戰(zhàn)橋 10
clear @a【tag=a】
clear @a【tag=b】
/give @a【tag=a】 wool 2240 14 {"minecraft:can_place_on":{"blocks":【"wool","concrete"】}}
/give @a【tag=b】 wool 2240 11 {"minecraft:can_place_on":{"blocks":【"wool","concrete"】}}
spawnpoint @a【tag=a】 13 8 -227
spawnpoint @a【tag=b】 56 8 -227
/give @a【tag=a】 diamond_shovel 1 0 {"minecraft:can_destroy":{"blocks":【"wool"】}}
/give @a【tag=b】 diamond_shovel 1 0 {"minecraft:can_destroy":{"blocks":【"wooltitle @a title §l§b5
title @a title §l§a4
title @a title §l§d3
title @a title §l§e2
title @a title §l§c1
title @a title §l§6游戲開始 !
setblock -10 4 -212 redstone_block
testfor @a[x=9,y=-100,z=-234,dx=53,dy=356,dz=16]
title @a[x=-18,y=0,z=-222,dx=8,dy=256,dz=8] title §l§c游戲內(nèi)已有玩家
title @a[x=-18,y=0,z=-222,dx=8,dy=256,dz=8] subtitle §l§b請耐心等待
tp @a[x=-18,y=0,z=-222,dx=8,dy=2testfor @e【x=9,y=0,z=-234,dx=53,dy=256,dz=16,type=item】
kill @e【x=9,y=0,z=-234,dx=53,dy=256,dz=16,type=item】
/scoreboard players add @a 分數(shù) 0
/scoreboard players add @a 戰(zhàn)橋 0
kill @e【type=箱子】
testfor @a[x=9,y=0,z=-234,dx=53,dy=256,dz=16
clone 2 4 -217 2 4 -217 34 8 -227
setblock 34 8 -227 air 1 destroy
title @a【x=9,y=0,z=-234,dx=53,dy=256,dz=16】 actionbar §b中心物資已§e刷新
playsound random.toast @a【x=9,y=0,z=-234,dxscoreboard players test @a【tag=b,x=9,y=-100,z=-234,dx=55,dy=356,dz=18】 戰(zhàn)橋 1 10
scoreboard players add @a【tag=a】 分數(shù) 1
/fill 59 4 -234 9 45 -220 air 1 replace wool
setblock -10 4 -210 air
scoreboard players test @a【tag=a,x=9,y=-100,z=-234,dx=55,dy=356,dz=18】 戰(zhàn)橋 1 10
scoreboard players add @a【tag=b】 分數(shù) 1
/fill 59 4 -234 9 45 -220 air 1 replace wool
setblock -scoreboard players test @a【tag=a】 分數(shù) 1
setblock -3 4 -224 redstone_block
clear @a【tag=b】
clear @a【tag=a】
spawnpoint @a【r=100】 -12 5 -228
scoreboard players test @a【tag=b】 分數(shù) 1
setblock -1 4 -224 redstone_block
clear @a【tag=a】
clear @a【tag=b】
spawnpoint @a【testfor @a【tag=a,x=9,y=-100,z=-234,dx=55,dy=356,dz=18】
say §l§4紅隊 §e@a【tag=a】 §f獲得§e勝利!
title @a【tag=a】 title §l§4紅隊 §e獲得了勝利!
title @a【tag=a】 subtitle §l§c切勿驕傲
playsound ambient.weather.lightning.impact @a
title @a【tag=b】 title §l§7你輸了
title @a【tag=b】 subtitle §l§c不要氣餒
scoreboard players set @e 分數(shù) 0
scoreboard players set @e 戰(zhàn)橋 0
clear @a【tag=a】
tp @a【tag=b】 -12 5 -228
tp @a【tag=a】 -12 5 -228
tag @a remove b
tag @a remove testfor @a【tag=b,x=9,y=-100,z=-234,dx=55,dy=356,dz=18】
say §l§b藍隊 §e@a【tag=b】 §f獲得§e勝利!
title @a【tag=b】 title §l§b藍隊 §e獲得了勝利!
title @a【tag=b】 subtitle §l§c切勿驕傲
playsound ambient.weather.lightning.impact @a
title @a【tag=a】 title §l§7你輸了
title @a【tag=a】 subtitle §l§c不要氣餒
scoreboard players set @e 分數(shù) 0
scoreboard players set @e 戰(zhàn)橋 0
clear @a【tag=b】
tp @a【tag=a】 -12 5 -228
tp @a【tag=b】 -12 5 -228
tag @a remove a
tag @a remove testfor @a【x=9,y=0,z=-234,dx=53,dy=0,dz=16,tag=b】
say §l§b藍隊§f玩家 §e@a【tag=b】 §7掉入了虛空
tp @a【tag=b】 56 8 -227
testfor @a【x=9,y=0,z=-234,dx=53,dy=0,dz=16,tag=a】
say §l§4紅隊§f玩家 §e@a【tag=a】 §7掉入了虛空
tp @a【tag=a】 13 8 -227
testfor @a【x=56,y=4,z=-229,dx=4,dy=2,dz=4,tag=b】
/tellraw @a【tag=b】 {"rawtext":【{"text":"§c這是您的基地 !"}】}
tp @p【tag=b】 56 8 -227
testfor @a【x=9,y=4,z=-229,dx=4,dy=2,dz=4,tag=a】
/tellraw @a【tag=a】 {"rawtext":【{"text":"§c這是您的基地 !"}】}
ttestfor @a【x=9,y=4,z=-229,dx=4,dy=1,dz=4,tag=b】
say §l§b藍隊§f玩家 §e@p【tag=b】 §c為§b藍隊§c獲得 §f1 分 !
scoreboard players remove @a【tag=a】 戰(zhàn)橋 1
tp @a【tag=a】 13 8 -227
tp @a【tag=b】 55 8 -227
/fill 59 4 -234 9 45 -220 air 1 replace wool
playsound firework.large_blast @a
summon minecraft:fireworks_rocket 34 8 -227p @p【tag=a】 13 8 -227b
setblock -1 4 -224 aira
setblock -3 4 -224 airr=100】 -12 5 -22810 4 -210 air=53,dy=256,dz=16】56,dz=8] -12 5 -228"】}}
setblock -10 4 -212 airmy