This commit is contained in:
延皓
2021-07-03 18:55:08 +08:00
commit b259706807
114 changed files with 3798 additions and 0 deletions
@@ -0,0 +1,9 @@
#计算在线时间和总榜
#判断条件用于排除地毯小人
execute unless score @s carpetBot matches 1 run scoreboard players operation @s activation += 1 calculator
execute unless score @s carpetBot matches 1 run scoreboard players operation 线(h) activation += 1 calculator
execute unless score @s carpetBot matches 1 run scoreboard players operation 线(h) totalList += 1 calculator
#重置玩家计时器
scoreboard players reset @s actimeCounter
#重置触发该函数的成就
advancement revoke @s only fz:scoreboards/activation
@@ -0,0 +1,3 @@
#主函数给在线玩家的计时器1s+1
scoreboard players add @a actimeCounter 1
schedule function fz:scoreboards/activation/main 1s
@@ -0,0 +1,2 @@
#将在线时间榜显示给轮播计分板的队伍
scoreboard objectives setdisplay sidebar.team.gold activation