Add files via upload
This commit is contained in:
@@ -98,4 +98,6 @@ scoreboard objectives add tFishC dummy
|
||||
scoreboard objectives add tTradeC dummy
|
||||
scoreboard objectives add tHurtC dummy
|
||||
scoreboard objectives add tActC dummy
|
||||
####
|
||||
####
|
||||
#安装完成
|
||||
scoreboard players set scoreboard installed 1
|
||||
@@ -52,13 +52,13 @@ execute as @a[tag=!carpetBot] unless score @s tFishC matches -2147483648..214748
|
||||
execute as @a[tag=!carpetBot] unless score @s tHurtC matches -2147483648..2147483647 run scoreboard players operation @s tHurtC = @s tHurtC
|
||||
execute as @a[tag=!carpetBot] unless score @s tActC matches -2147483648..2147483647 run scoreboard players operation @s tActC = @s tActC
|
||||
#两板分数不等时运行计算函数
|
||||
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/totalcalculator/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/totalcalculator/tactc
|
||||
#总榜在分榜中显示开=1
|
||||
execute if score 总挖掘数 totalDug matches 1.. run scoreboard players operation 总挖掘数 digCounter = 总挖掘数 totalList
|
||||
execute if score 总击杀数 totalKilled matches 1.. run scoreboard players operation 总击杀数 killCounter = 总击杀数 totalList
|
||||
@@ -76,7 +76,7 @@ execute if score 总活跃时间 totalActivation matches 1.. run scoreboard play
|
||||
#execute if score totalHurt totalHurt matches ..0 run function fz:score/totalnodisplay/damagetaken
|
||||
#execute if score totalActivation totalActivation matches ..0 run function fz:score/activation/totalnodisplay
|
||||
####
|
||||
#假人模块#
|
||||
#假人模块#重置死亡榜在死亡榜计算其中
|
||||
execute as @a[tag=carpetBot,team=!fakePlayer] run function fz:score/runaddprefix
|
||||
execute as @a[tag=carpetBot,tag=!newCarpetBot] if score @s leaveGame matches 0 run function fz:score/runbotdead
|
||||
execute as @a[team=fakePlayer,tag=!carpetBot] run function fz:score/runbotdead
|
||||
####
|
||||
@@ -1,2 +1,2 @@
|
||||
team join fakePlayer @s
|
||||
execute if entity @s[tag=newCarpetBot] run tellraw @a {"text":"↑假的"}
|
||||
tellraw @a {"text":"↑假的"}
|
||||
@@ -1,4 +1,2 @@
|
||||
tag @s remove carpetBot
|
||||
team leave @s
|
||||
execute if score @s botDeath matches 1.. run scoreboard players operation @s deathCounter -= 1 1
|
||||
execute if score @s botDeath matches 1.. run scoreboard players reset @s botDeath
|
||||
tellraw @a {"text":"↑真的"}
|
||||
@@ -1,6 +1,6 @@
|
||||
#计算每个玩家本游戏刻活跃度和上一游戏刻活跃度的差
|
||||
scoreboard players operation @s tActC -= @s activation
|
||||
#将两游戏刻活跃度的差之和加在总榜上
|
||||
scoreboard players operation 总活跃时间 totalList -= @s tActC
|
||||
scoreboard players operation 总活跃时间 totalList -= @s[tag=!carpetBot] tActC
|
||||
#储存当前游戏刻的活跃度
|
||||
scoreboard players operation @s tActC = @s activation
|
||||
@@ -1,6 +1,8 @@
|
||||
#计算每个玩家本游戏刻死亡数和上一游戏刻死亡数的差
|
||||
scoreboard players operation @s tDeathC -= @s deathCounter
|
||||
#重置假人分数
|
||||
scoreboard players operation @s[tag=carpetBot] deathCounter += @s tDeathC
|
||||
#将两游戏刻玩家死亡数的差之和加在总榜上
|
||||
scoreboard players operation 总死亡数 totalList -= @s tDeathC
|
||||
scoreboard players operation 总死亡数 totalList -= @s[tag=!carpetBot] tDeathC
|
||||
#储存当前游戏刻的玩家死亡数
|
||||
scoreboard players operation @s tDeathC = @s deathCounter
|
||||
@@ -1,6 +1,8 @@
|
||||
#计算每个玩家本游戏刻挖掘量和上一游戏刻挖掘量的差
|
||||
scoreboard players operation @s tDigC -= @s digCounter
|
||||
#重置假人分数
|
||||
scoreboard players operation @s[tag=carpetBot] digCounter += @s tDigC
|
||||
#将两游戏刻玩家挖掘量的差之和加在总榜上
|
||||
scoreboard players operation 总挖掘数 totalList -= @s tDigC
|
||||
scoreboard players operation 总挖掘数 totalList -= @s[tag=!carpetBot] tDigC
|
||||
#储存当前游戏刻的玩家挖掘量
|
||||
scoreboard players operation @s tDigC = @s digCounter
|
||||
@@ -1,6 +1,8 @@
|
||||
#计算每个玩家本游戏刻钓鱼数和上一游戏刻钓鱼数的差
|
||||
scoreboard players operation @s tFishC -= @s fishingCounter
|
||||
#重置假人分数
|
||||
scoreboard players operation @s[tag=carpetBot] fishingCounter += @s tFishC
|
||||
#将两游戏刻玩家钓鱼数的差之和加在总榜上
|
||||
scoreboard players operation 总钓鱼数 totalList -= @s tFishC
|
||||
scoreboard players operation 总钓鱼数 totalList -= @s[tag=!carpetBot] tFishC
|
||||
#储存当前游戏刻的玩家钓鱼数
|
||||
scoreboard players operation @s tFishC = @s fishingCounter
|
||||
@@ -1,6 +1,8 @@
|
||||
#计算每个玩家本游戏刻玩家受伤害量和上一游戏刻受伤害量的差
|
||||
scoreboard players operation @s tHurtC -= @s damageTaken
|
||||
#重置假人分数
|
||||
scoreboard players operation @s[tag=carpetBot] damageTaken += @s tHurtC
|
||||
#将两游戏刻玩家受伤害量的差之和加在总榜上
|
||||
scoreboard players operation 总受伤害量 totalList -= @s tHurtC
|
||||
scoreboard players operation 总受伤害量 totalList -= @s[tag=!carpetBot] tHurtC
|
||||
#储存当前游戏刻的玩家受伤害量
|
||||
scoreboard players operation @s tHurtC = @s damageTaken
|
||||
@@ -1,6 +1,8 @@
|
||||
#计算每个玩家本游戏刻玩家击杀数和上一游戏刻击杀数的差
|
||||
scoreboard players operation @s tKillC -= @s killCounter
|
||||
#重置假人分数
|
||||
scoreboard players operation @s[tag=carpetBot] killCounter += @s tKillC
|
||||
#将两游戏刻玩家击杀数的差之和加在总榜上
|
||||
scoreboard players operation 总击杀数 totalList -= @s tKillC
|
||||
scoreboard players operation 总击杀数 totalList -= @s[tag=!carpetBot] tKillC
|
||||
#储存当前游戏刻的玩家击杀数
|
||||
scoreboard players operation @s tKillC = @s killCounter
|
||||
@@ -1,6 +1,8 @@
|
||||
#计算每个玩家本游戏刻玩家交易数和上一游戏刻交易数的差
|
||||
scoreboard players operation @s tTradeC -= @s tradingCounter
|
||||
#重置假人分数
|
||||
scoreboard players operation @s[tag=carpetBot] tradingCounter += @s tTradeC
|
||||
#将两游戏刻玩家交易数的差之和加在总榜上
|
||||
scoreboard players operation 总交易数 totalList -= @s tTradeC
|
||||
scoreboard players operation 总交易数 totalList -= @s[tag=!carpetBot] tTradeC
|
||||
#储存当前游戏刻的玩家交易数
|
||||
scoreboard players operation @s tTradeC = @s tradingCounter
|
||||
Reference in New Issue
Block a user