我的世界指令:游戲匹配區(qū)附帶倒計(jì)時(shí)音效,基礎(chǔ)且簡(jiǎn)單易學(xué)
小皮果吖制作嚴(yán)禁搬運(yùn)轉(zhuǎn)載!
作者我的世界版本:網(wǎng)易手機(jī)版。
需要一定基礎(chǔ),不建議新手做。
一共10個(gè)命令方塊,2條前置指令,1個(gè)盔甲架。
盔甲架命名為“
匹配區(qū)
”。
前置指令聊天欄輸入
/scoreboard objectives add 人數(shù) dummy /scoreboard objectives add 倒計(jì)時(shí) dummy
匹配區(qū)人數(shù)顯示
(必弄)
①循環(huán)無(wú)條件保存開(kāi)啟(必弄) /scoreboard players set @e[type=armor_stand,name=匹配區(qū)] 人數(shù) 0 ②連鎖無(wú)條件保持開(kāi)啟(必弄) /execute @a[匹配區(qū)范圍自己填]~~~scoreboard players add @e[type=armor_stand,name=匹配區(qū)] 人數(shù) 1 ③連鎖無(wú)條件保持開(kāi)啟(必弄) /titleraw @a[匹配區(qū)范圍自己填] actionbar {"rawtext":[{"text":"§l§a匹配區(qū)§f|§6目前人數(shù)§b"},{"score":{"name":"@e[type=armor_stand,name=匹配區(qū)]","objective":"人數(shù)"}},{"text":"§f/10"},{"text":"\n§e倒計(jì)時(shí)§b "},{"score":{"name":"@e[type=armor_stand,name=匹配區(qū)]","objective":"倒計(jì)時(shí)"}}]}
匹配區(qū)倒計(jì)時(shí)檢測(cè)+傳送游戲場(chǎng)地
①循環(huán)無(wú)條件保持開(kāi)啟(必弄) /scoreboard players set @e[name=匹配區(qū),scores={人數(shù)=0..1},type=armor_stand] 倒計(jì)時(shí) 60 ②連鎖無(wú)條件保持開(kāi)啟(可省) /scoreboard players set @e[name=匹配區(qū),scores={人數(shù)=3..,倒計(jì)時(shí)=31..},type=armor_stand] 倒計(jì)時(shí) 30 ③連鎖無(wú)條件保持開(kāi)啟(可?。?/scoreboard players set @e[name=匹配區(qū),scores={人數(shù)=6..,倒計(jì)時(shí)=11..},type=armor_stand] 倒計(jì)時(shí) 10 ④連鎖無(wú)條件保持開(kāi)啟(可省) /execute @e[name=匹配區(qū),scores={倒計(jì)時(shí)=0},type=armor_stand]~~~ title @a[匹配區(qū)范圍] title §l§a游戲開(kāi)始 ⑤連鎖無(wú)條件保持開(kāi)啟(必弄) /execute @e[name=匹配區(qū),scores={倒計(jì)時(shí)=0},type=armor_stand]~~~tp @a[匹配區(qū)范圍自己填] 游戲場(chǎng)地坐標(biāo)
減倒計(jì)時(shí)+最后10秒音效
①循環(huán)無(wú)條件保持開(kāi)啟延遲20(必弄) /scoreboard players remove @e[type=armor_stand,name=匹配區(qū),scores={人數(shù)=2..}] 倒計(jì)時(shí) 1 ②連鎖有條件保持開(kāi)啟(可省) /execute @e[type=armor_stand,name=匹配區(qū),scores={倒計(jì)時(shí)=0..10}] ~~~playsound random.orb @a[匹配區(qū)范圍自己填]
匹配區(qū)范圍格式:
x= ,y= ,z= ,dx= ,dy= ,dz=
——完。