我的世界基巖版純指令死亡榜教程(聯(lián)機(jī)可用服務(wù)器可用)
首先:設(shè)置3個側(cè)邊欄名稱 cs pd xs
分別為:
/scoreboard objectives add cs dummy cs
/scoreboard objectives add pd dummy pd
/scoreboard objectives add xs dummy 死亡榜(當(dāng)然你可以加顏色啊什么的)
?
1:/scoreboard objectives setdisplay sidebar xs?用來設(shè)置側(cè)邊欄顯示的 (是否循環(huán)都行)
2:/scoreboard players add @a pd 1 給玩家加上判定
3:/scoreboard players reset * xs 重置不在線玩家的死亡次數(shù)
4:/scoreboard players add @a[scores={pd=1}] cs 1 給每個玩家判定死亡的玩家加一次死亡次數(shù)
5:/scoreboard players set @e[type=player] pd 0 設(shè)置活著的玩家判定為活著
6:/execute @a ~ ~ ~ scoreboard players operation @s xs = @s cs 用于顯示覆蓋完下線玩家后的死亡榜



標(biāo)簽: