Add files via upload

This commit is contained in:
Harveykang
2019-12-30 16:34:27 +08:00
committed by GitHub
parent c1c8222c9c
commit 18b7b81844
30 changed files with 117 additions and 51 deletions
@@ -1,3 +1,3 @@
tellraw @a[scores={scoreswitch=8},team=!activation] [{"text":"您已订阅"},{"text":"活跃度排行(小时)","color":"aqua"}]
team join activation @a[scores={scoreswitch=8},team=!activation]
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
@@ -1,6 +1,6 @@
#计算每个玩家本游戏刻挖掘量和上一游戏刻受伤害量的差
#计算每个玩家本游戏刻活跃度和上一游戏刻活跃度的差
scoreboard players operation @s tActC -= @s activation
#将两游戏刻玩家受伤害量的差之和加在总榜上
#将两游戏刻活跃度的差之和加在总榜上
scoreboard players operation totalActivation totalList -= @s tActC
#储存当前游戏刻的玩家受伤害量
#储存当前游戏刻的活跃度
scoreboard players operation @s tActC = @s activation
+1 -1
View File
@@ -81,7 +81,7 @@ team modify damageTaken color yellow
scoreboard objectives setdisplay sidebar.team.yellow damageTaken
team modify totalList color light_purple
scoreboard objectives setdisplay sidebar.team.light_purple totalList
scoreboard objectives add scoreswitch trigger
scoreboard objectives add scoreSwitch trigger
####
#安装缓存#
scoreboard objectives add tDigC dummy
+14 -14
View File
@@ -14,20 +14,20 @@ execute if score scoreboard timeCounter matches 4800 run scoreboard objectives s
execute if score scoreboard timeCounter matches 4800.. run scoreboard players set scoreboard timeCounter 0
####
#记分板开关#
scoreboard players enable @a scoreswitch
execute if entity @a[scores={scoreswitch=..-1},team=!displayScoresOff] run function fz:score/teams/displayscoresoff
execute if entity @a[scores={scoreswitch=1},team=!displayScoresOn] run function fz:score/teams/displayscoreson
execute if entity @a[scores={scoreswitch=2},team=!killCounter] run function fz:score/teams/killcounter
execute if entity @a[scores={scoreswitch=3},team=!digCounter] run function fz:score/teams/digcounter
execute if entity @a[scores={scoreswitch=4},team=!deathCounter] run function fz:score/teams/deathcounter
execute if entity @a[scores={scoreswitch=5},team=!tradingCounter] run function fz:score/teams/tradingcounter
execute if entity @a[scores={scoreswitch=6},team=!fishingCounter] run function fz:score/teams/fishingcounter
execute if entity @a[scores={scoreswitch=7},team=!damageTaken] run function fz:score/teams/damagetaken
execute if entity @a[scores={scoreswitch=8},team=!activation] run function fz:score/activation/team
execute if entity @a[scores={scoreswitch=9},team=!totalList] run function fz:score/teams/totallist
execute if entity @a[scores={scoreswitch=10..}] run tellraw @a[scores={scoreswitch=10..}] [{"text":"不存在编号为10及以上的记分板","color":"dark_red"}]
scoreboard players set @a[scores={scoreswitch=..-1}] scoreswitch 0
scoreboard players set @a[scores={scoreswitch=1..}] scoreswitch 0
scoreboard players enable @a scoreSwitch
execute as @a if entity @a[scores={scoreSwitch=..-1},team=!displayScoresOff] run function fz:score/teams/displayscoresoff
execute if entity @a[scores={scoreSwitch=1},team=!displayScoresOn] run function fz:score/teams/displayscoreson
execute if entity @a[scores={scoreSwitch=2},team=!killCounter] run function fz:score/teams/killcounter
execute if entity @a[scores={scoreSwitch=3},team=!digCounter] run function fz:score/teams/digcounter
execute if entity @a[scores={scoreSwitch=4},team=!deathCounter] run function fz:score/teams/deathcounter
execute if entity @a[scores={scoreSwitch=5},team=!tradingCounter] run function fz:score/teams/tradingcounter
execute if entity @a[scores={scoreSwitch=6},team=!fishingCounter] run function fz:score/teams/fishingcounter
execute if entity @a[scores={scoreSwitch=7},team=!damageTaken] run function fz:score/teams/damagetaken
execute if entity @a[scores={scoreSwitch=8},team=!activation] run function fz:score/activation/team
execute if entity @a[scores={scoreSwitch=9},team=!totalList] run function fz:score/teams/totallist
execute if entity @a[scores={scoreSwitch=10..}] run tellraw @a[scores={scoreSwitch=10..}] [{"text":"不存在编号为10及以上的记分板","color":"dark_red"}]
scoreboard players set @a[scores={scoreSwitch=..-1}] scoreSwitch 0
scoreboard players set @a[scores={scoreSwitch=1..}] scoreSwitch 0
team join displayScoresOff @a[team=]
####
#添加工具计入挖掘量#
@@ -1,3 +1,3 @@
tellraw @a[scores={scoreswitch=7},team=!damageTaken] [{"text":"您已订阅"},{"text":"老八的彻shuǒ","color":"yellow"}]
team join damageTaken @a[scores={scoreswitch=7},team=!damageTaken]
tellraw @a[scores={scoreSwitch=7},team=!damageTaken] [{"text":"您已订阅"},{"text":"老八的彻shuǒ","color":"yellow"}]
team join damageTaken @a[scores={scoreSwitch=7},team=!damageTaken]
scoreboard objectives setdisplay sidebar.team.yellow damageTaken
@@ -1,3 +1,3 @@
tellraw @a[scores={scoreswitch=4},team=!deathCounter] [{"text":"您已订阅"},{"text":"死亡榜","color":"dark_red"}]
team join deathCounter @a[scores={scoreswitch=4},team=!deathCounter]
tellraw @a[scores={scoreSwitch=4},team=!deathCounter] [{"text":"您已订阅"},{"text":"死亡榜","color":"dark_red"}]
team join deathCounter @a[scores={scoreSwitch=4},team=!deathCounter]
scoreboard objectives setdisplay sidebar.team.dark_red deathCounter
@@ -1,3 +1,3 @@
tellraw @a[scores={scoreswitch=3},team=!digCounter] [{"text":"您已订阅"},{"text":"挖掘榜","color":"gray"}]
team join digCounter @a[scores={scoreswitch=3},team=!digCounter]
tellraw @a[scores={scoreSwitch=3},team=!digCounter] [{"text":"您已订阅"},{"text":"挖掘榜","color":"gray"}]
team join digCounter @a[scores={scoreSwitch=3},team=!digCounter]
scoreboard objectives setdisplay sidebar.team.gray digCounter
@@ -1,2 +1,2 @@
tellraw @a[scores={scoreswitch=..-1},team=!displayScoresOff] [{"text":"您已退订记分板"}]
team join displayScoresOff @a[scores={scoreswitch=..-1},team=!displayScoresOff]
tellraw @a[scores={scoreSwitch=..-1},team=!displayScoresOff] [{"text":"您已退订记分板"}]
team join displayScoresOff @a[scores={scoreSwitch=..-1},team=!displayScoresOff]
@@ -1,2 +1,2 @@
tellraw @a[scores={scoreswitch=1},team=!displayScoresOn] [{"text":"正在循环播放记分板"}]
team join displayScoresOn @a[scores={scoreswitch=1},team=!displayScoresOn]
tellraw @a[scores={scoreSwitch=1},team=!displayScoresOn] [{"text":"正在循环播放记分板"}]
team join displayScoresOn @a[scores={scoreSwitch=1},team=!displayScoresOn]
@@ -1,3 +1,3 @@
tellraw @a[scores={scoreswitch=6},team=!fishingCounter] [{"text":"您已订阅"},{"text":"钓鱼榜","color":"blue"}]
team join fishingCounter @a[scores={scoreswitch=6},team=!fishingCounter]
tellraw @a[scores={scoreSwitch=6},team=!fishingCounter] [{"text":"您已订阅"},{"text":"钓鱼榜","color":"blue"}]
team join fishingCounter @a[scores={scoreSwitch=6},team=!fishingCounter]
scoreboard objectives setdisplay sidebar.team.blue fishingCounter
@@ -1,3 +1,3 @@
tellraw @a[scores={scoreswitch=2},team=!killCounter] [{"text":"您已订阅"},{"text":"击杀榜","color":"red"}]
team join killCounter @a[scores={scoreswitch=2},team=!killCounter]
tellraw @a[scores={scoreSwitch=2},team=!killCounter] [{"text":"您已订阅"},{"text":"击杀榜","color":"red"}]
team join killCounter @a[scores={scoreSwitch=2},team=!killCounter]
scoreboard objectives setdisplay sidebar.team.red killCounter
@@ -1,3 +1,3 @@
tellraw @a[scores={scoreswitch=9},team=!totalList] [{"text":"您已订阅"},{"text":"统计总量","color":"light_purple"}]
team join totalList @a[scores={scoreswitch=9},team=!totalList]
tellraw @a[scores={scoreSwitch=9},team=!totalList] [{"text":"您已订阅"},{"text":"统计总量","color":"light_purple"}]
team join totalList @a[scores={scoreSwitch=9},team=!totalList]
scoreboard objectives setdisplay sidebar.team.light_purple totalList
@@ -1,3 +1,3 @@
tellraw @a[scores={scoreswitch=5},team=!tradingCounter] [{"text":"您已订阅"},{"text":"交易榜","color":"green"}]
team join tradingCounter @a[scores={scoreswitch=5},team=!tradingCounter]
tellraw @a[scores={scoreSwitch=5},team=!tradingCounter] [{"text":"您已订阅"},{"text":"交易榜","color":"green"}]
team join tradingCounter @a[scores={scoreSwitch=5},team=!tradingCounter]
scoreboard objectives setdisplay sidebar.team.green tradingCounter
@@ -1,4 +1,4 @@
#计算每个玩家本游戏刻挖掘量和上一游戏刻死亡数的差
#计算每个玩家本游戏刻死亡数和上一游戏刻死亡数的差
scoreboard players operation @s tDeathC -= @s deathCounter
#将两游戏刻玩家死亡数的差之和加在总榜上
scoreboard players operation totalDeath totalList -= @s tDeathC
@@ -1,4 +1,4 @@
#计算每个玩家本游戏刻挖掘量和上一游戏刻钓鱼数的差
#计算每个玩家本游戏刻钓鱼数和上一游戏刻钓鱼数的差
scoreboard players operation @s tFishC -= @s fishingCounter
#将两游戏刻玩家钓鱼数的差之和加在总榜上
scoreboard players operation totalFished totalList -= @s tFishC
@@ -1,4 +1,4 @@
#计算每个玩家本游戏刻挖掘量和上一游戏刻受伤害量的差
#计算每个玩家本游戏刻玩家受伤害量和上一游戏刻受伤害量的差
scoreboard players operation @s tHurtC -= @s damageTaken
#将两游戏刻玩家受伤害量的差之和加在总榜上
scoreboard players operation totalHurt totalList -= @s tHurtC
@@ -1,4 +1,4 @@
#计算每个玩家本游戏刻挖掘量和上一游戏刻击杀数的差
#计算每个玩家本游戏刻玩家击杀数和上一游戏刻击杀数的差
scoreboard players operation @s tKillC -= @s killCounter
#将两游戏刻玩家击杀数的差之和加在总榜上
scoreboard players operation totalKilled totalList -= @s tKillC
@@ -1,4 +1,4 @@
#计算每个玩家本游戏刻挖掘量和上一游戏刻交易数的差
#计算每个玩家本游戏刻玩家交易数和上一游戏刻交易数的差
scoreboard players operation @s tTradeC -= @s tradingCounter
#将两游戏刻玩家交易数的差之和加在总榜上
scoreboard players operation totalTraded totalList -= @s tTradeC