Add files via upload
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
scoreboard objectives add actCounter dummy
|
||||
scoreboard objectives add activation dummy [{"text":"活跃度排行","color":"aqua"},{"text":"(小时)","color":"gold"}]
|
||||
team add activation
|
||||
team modify activation color aqua
|
||||
|
||||
@@ -2,13 +2,22 @@
|
||||
function fz:score/activation/install
|
||||
####
|
||||
#安装记分项目#
|
||||
scoreboard objectives add digCounter dummy {"text":"挖掘榜","color":"gray"}
|
||||
scoreboard objectives add deathCounter deathCount {"text":"死亡榜","color":"dark_red"}
|
||||
scoreboard objectives add killCounter totalKillCount {"text":"击杀榜","color":"red"}
|
||||
scoreboard objectives add tradingCounter minecraft.custom:minecraft.traded_with_villager {"text":"PY榜","color":"green"}
|
||||
scoreboard objectives add fishingCounter minecraft.custom:minecraft.fish_caught {"text":"钓鱼榜","color":"blue"}
|
||||
scoreboard objectives add damageTaken minecraft.custom:minecraft.damage_taken [{"text":"奥利给榜","color":"yellow"},{"text":"(伤害*10)","color":"gole"}]
|
||||
scoreboard objectives add totalList dummy {"text":"统计总量","color":"light_purple"}
|
||||
scoreboard objectives add digCounter dummy
|
||||
scoreboard objectives add deathCounter deathCount
|
||||
scoreboard objectives add killCounter totalKillCount
|
||||
scoreboard objectives add tradingCounter minecraft.custom:minecraft.traded_with_villager
|
||||
scoreboard objectives add fishingCounter minecraft.custom:minecraft.fish_caught
|
||||
scoreboard objectives add damageTaken minecraft.custom:minecraft.damage_taken
|
||||
scoreboard objectives add totalList dummy
|
||||
####
|
||||
#编辑记分项目#
|
||||
scoreboard objectives modify digCounter displayname {"text":"挖掘榜","color":"gray"}
|
||||
scoreboard objectives modify deathCounter displayname {"text":"死亡榜","color":"dark_red"}
|
||||
scoreboard objectives modify killCounter displayname {"text":"击杀榜","color":"red"}
|
||||
scoreboard objectives modify tradingCounter displayname {"text":"PY榜","color":"green"}
|
||||
scoreboard objectives modify fishingCounter displayname {"text":"钓鱼榜","color":"blue"}
|
||||
scoreboard objectives modify damageTaken displayname [{"text":"奥利给榜","color":"yellow"},{"text":"(受伤害*10)","color":"gole"}]
|
||||
scoreboard objectives modify totalList displayname {"text":"统计总量","color":"light_purple"}
|
||||
####
|
||||
#安装工具项目#
|
||||
scoreboard objectives add diamond_pickaxe minecraft.used:minecraft.diamond_pickaxe
|
||||
|
||||
@@ -51,13 +51,13 @@ execute as @a unless score @s tFishC matches -2147483648..2147483647 run scorebo
|
||||
execute as @a unless score @s tHurtC matches -2147483648..2147483647 run scoreboard players operation @s tHurtC = @s tHurtC
|
||||
execute as @a unless score @s tActC matches -2147483648..2147483647 run scoreboard players operation @s tActC = @s tActC
|
||||
#两板分数不等时运行计算函数
|
||||
execute as @a unless score @s tDigC = @s digCounter run function fz:score/totalcalculator/tdigc
|
||||
execute as @a unless score @s tKillC = @s killCounter run function fz:score/totalcalculator/tkillc
|
||||
execute as @a unless score @s tDeathC = @s deathCounter run function fz:score/totalcalculator/tdeathc
|
||||
execute as @a unless score @s tTradeC = @s tradingCounter run function fz:score/totalcalculator/ttradec
|
||||
execute as @a unless score @s tFishC = @s fishingCounter run function fz:score/totalcalculator/tfishc
|
||||
execute as @a unless score @s tHurtC = @s damageTaken run function fz:score/totalcalculator/thurtc
|
||||
execute as @a unless score @s tActC = @s activation run function fz:score/activation/totalcalculator
|
||||
execute as @a[tag=!carpetBot] unless score @s tDigC = @s digCounter run function fz:score/totalcalculator/tdigc
|
||||
execute as @a[tag=!carpetBot] unless score @s tKillC = @s killCounter run function fz:score/totalcalculator/tkillc
|
||||
execute as @a[tag=!carpetBot] unless score @s tDeathC = @s deathCounter run function fz:score/totalcalculator/tdeathc
|
||||
execute as @a[tag=!carpetBot] unless score @s tTradeC = @s tradingCounter run function fz:score/totalcalculator/ttradec
|
||||
execute as @a[tag=!carpetBot] unless score @s tFishC = @s fishingCounter run function fz:score/totalcalculator/tfishc
|
||||
execute as @a[tag=!carpetBot] unless score @s tHurtC = @s damageTaken run function fz:score/totalcalculator/thurtc
|
||||
execute as @a[tag=!carpetBot] unless score @s tActC = @s activation run function fz:score/activation/totalcalculator
|
||||
#总榜在分榜中显示开sc=1
|
||||
execute if score totalDug totalDug matches 1.. run scoreboard players operation totalDug digCounter = totalDug totalList
|
||||
execute if score totalKilled totalKilled matches 1.. run scoreboard players operation totalKilled killCounter = totalKilled totalList
|
||||
|
||||
Reference in New Issue
Block a user