Add files via upload
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
scoreboard objectives add actCounter dummy
|
||||
scoreboard objectives add activation dummy [{"text":"活跃度排行","color":"aqua"},{"text":"(小时)","color":"gold"}]
|
||||
team add activation
|
||||
team modify activation color aqua
|
||||
team join activation totalActivation
|
||||
scoreboard objectives setdisplay sidebar.team.aqua activation
|
||||
scoreboard objectives add tActC dummy
|
||||
###实验性###在分项目下显示总量###
|
||||
scoreboard objectives add totalActivation dummy
|
||||
scoreboard players set totalActivation totalActivation 1
|
||||
####
|
||||
@@ -0,0 +1,2 @@
|
||||
scoreboard players add @a actCounter 1
|
||||
execute as @a if score @s actCounter matches 72000 run function fz:score/activation/sub
|
||||
@@ -0,0 +1,2 @@
|
||||
scoreboard players set @s actCounter 0
|
||||
scoreboard players add @s activation 1
|
||||
@@ -0,0 +1,3 @@
|
||||
tellraw @a[scores={scoreswitch=8},team=!activation] [{"text":"您已订阅"},{"text":"活跃度排行(小时)","color":"aqua"}]
|
||||
team join activation @a[scores={scoreswitch=8},team=!activation]
|
||||
scoreboard objectives setdisplay sidebar.team.aqua activation
|
||||
@@ -0,0 +1,6 @@
|
||||
#计算每个玩家本游戏刻挖掘量和上一游戏刻受伤害量的差
|
||||
scoreboard players operation @s tActC -= @s activation
|
||||
#将两游戏刻玩家受伤害量的差之和加在总榜上
|
||||
scoreboard players operation totalActivation totalList -= @s tActC
|
||||
#储存当前游戏刻的玩家受伤害量
|
||||
scoreboard players operation @s tActC = @s activation
|
||||
@@ -0,0 +1,2 @@
|
||||
scoreboard players reset totalActivation activation
|
||||
scoreboard players reset totalActivation totalActivation
|
||||
@@ -0,0 +1,5 @@
|
||||
scoreboard objectives remove actCounter
|
||||
scoreboard objectives remove activation
|
||||
scoreboard objectives remove tActC
|
||||
team remove activation
|
||||
scoreboard objectives remove totalActivation
|
||||
Reference in New Issue
Block a user