This commit is contained in:
延皓 committed 2021-07-03 18:55:08 +08:00
commit b259706807
114 files changed
+3798

No files matched your search

@@ -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
@@ -0,0 +1,8 @@
#计算受破基岩量和总榜
#判断条件用于排除地毯小人
execute unless score @s carpetBot matches 1 run scoreboard players operation @s bedrockBreaked += @s fz.bbl
execute unless score @s carpetBot matches 1 run scoreboard players operation 全员头铁 bedrockBreaked += @s fz.bbl
execute unless score @s carpetBot matches 1 run scoreboard players operation 全员头铁 totalList += @s fz.bbl
execute unless score @s carpetBot matches 1 run scoreboard players reset @s fz.bbl
#重置触发该函数的成就
advancement revoke @s only fz:scoreboards/bedrockbreaked
@@ -0,0 +1,2 @@
#将破基岩榜显示给轮播计分板的队伍(金队)
scoreboard objectives setdisplay sidebar.team.dark_gray bedrockBreaked
@@ -0,0 +1,15 @@
#应用计分板显示,对应分数1838019369-1838019379
execute if score @s config matches 1838019370 run team leave @s
execute if score @s config matches 1838019371 run team join gold
execute if score @s config matches 1838019372 run team join aqua
execute if score @s config matches 1838019373 run team join yellow
execute if score @s config matches 1838019374 run team join dark_red
execute if score @s config matches 1838019375 run team join gray
execute if score @s config matches 1838019376 run team join blue
execute if score @s config matches 1838019377 run team join red
execute if score @s config matches 1838019378 run team join green
execute if score @s config matches 1838019379 run team join dark_aqua
execute if score @s config matches 1838019369 run team join dark_green
#每条子函数都要reset config分数和function fz:config/display
scoreboard players reset @s config
function fz:config/display
@@ -0,0 +1,10 @@
#计算受伤害量和总榜
#判断条件用于排除地毯小人
execute unless score @s carpetBot matches 1 run scoreboard players operation @s 10xDamageTaken /= 10 calculator
execute unless score @s carpetBot matches 1 run scoreboard players operation @s damageTaken += @s 10xDamageTaken
execute unless score @s carpetBot matches 1 run scoreboard players operation 群p抖M damageTaken += @s 10xDamageTaken
execute unless score @s carpetBot matches 1 run scoreboard players operation 群p抖M totalList += @s 10xDamageTaken
#重置伤害探测记分板
scoreboard players reset @s 10xDamageTaken
#重置触发该函数的成就
advancement revoke @s only fz:scoreboards/damagetaken
@@ -0,0 +1,2 @@
#将抖M榜显示给轮播记分板的队伍(金队)
scoreboard objectives setdisplay sidebar.team.gold damageTaken
@@ -0,0 +1,9 @@
#计算死亡数和总榜
#判断条件用于排除地毯小人
execute unless score @s carpetBot matches 1 run scoreboard players operation @s deathCounter += @s deathTester
execute unless score @s carpetBot matches 1 run scoreboard players operation 全部木大 deathCounter += @s deathTester
execute unless score @s carpetBot matches 1 run scoreboard players operation 全部木大 totalList += @s deathTester
#重置死亡探测记分板
scoreboard players reset @s deathTester
#重置触发该函数的成就
advancement revoke @s only fz:scoreboards/deathcounter
@@ -0,0 +1,2 @@
#将死亡榜显示给轮播计分板的队伍(金队)
scoreboard objectives setdisplay sidebar.team.gold deathCounter
@@ -0,0 +1,12 @@
#计分板数据将永久失去(真的很久!)
scoreboard objectives remove killCounter
scoreboard objectives remove digCounter
scoreboard objectives remove deathCounter
scoreboard objectives remove tradingCounter
scoreboard objectives remove fishingCounter
scoreboard objectives remove damageTaken
scoreboard objectives remove activation
scoreboard objectives remove totalList
scoreboard objectives remove bedrockBreaked
#提示已删除
tellraw @a {"text": "[信息]计分板数据已删除","color": "#5fff00"}
@@ -0,0 +1,31 @@
#判断各工具是否被使用并运行相应函数计算挖掘榜(左右键都会探测)
#需要配合修正函数toolfix修正右键使用带来的加分
execute if score @s usedDiaAxe matches 1.. run function fz:scoreboards/digcounter/tools/diaaxe
execute if score @s usedDiaHoe matches 1.. run function fz:scoreboards/digcounter/tools/diahoe
execute if score @s usedDiaPickaxe matches 1.. run function fz:scoreboards/digcounter/tools/diapickaxe
execute if score @s usedDiaShovel matches 1.. run function fz:scoreboards/digcounter/tools/diashovel
execute if score @s usedGolAxe matches 1.. run function fz:scoreboards/digcounter/tools/golaxe
execute if score @s usedGolHoe matches 1.. run function fz:scoreboards/digcounter/tools/golhoe
execute if score @s usedGolHoe matches 1.. run kill @s
execute if score @s usedGolPickaxe matches 1.. run function fz:scoreboards/digcounter/tools/golpickaxe
execute if score @s usedGolShovel matches 1.. run function fz:scoreboards/digcounter/tools/golshovel
execute if score @s usedIroAxe matches 1.. run function fz:scoreboards/digcounter/tools/iroaxe
execute if score @s usedIroHoe matches 1.. run function fz:scoreboards/digcounter/tools/irohoe
execute if score @s usedIroHoe matches 1.. run kill @s
execute if score @s usedIroPickaxe matches 1.. run function fz:scoreboards/digcounter/tools/iropickaxe
execute if score @s usedIroShovel matches 1.. run function fz:scoreboards/digcounter/tools/iroshovel
execute if score @s usedNetAxe matches 1.. run function fz:scoreboards/digcounter/tools/netaxe
execute if score @s usedNetHoe matches 1.. run function fz:scoreboards/digcounter/tools/nethoe
execute if score @s usedNetPickaxe matches 1.. run function fz:scoreboards/digcounter/tools/netpickaxe
execute if score @s usedNetShovel matches 1.. run function fz:scoreboards/digcounter/tools/netshovel
execute if score @s usedStoAxe matches 1.. run function fz:scoreboards/digcounter/tools/stoaxe
execute if score @s usedStoHoe matches 1.. run function fz:scoreboards/digcounter/tools/stohoe
execute if score @s usedStoPickaxe matches 1.. run function fz:scoreboards/digcounter/tools/stopickaxe
execute if score @s usedStoShovel matches 1.. run function fz:scoreboards/digcounter/tools/stoshovel
execute if score @s usedWooAxe matches 1.. run function fz:scoreboards/digcounter/tools/wooaxe
execute if score @s usedWooHoe matches 1.. run function fz:scoreboards/digcounter/tools/woohoe
execute if score @s usedWooPickaxe matches 1.. run function fz:scoreboards/digcounter/tools/woopickaxe
execute if score @s usedWooShovel matches 1.. run function fz:scoreboards/digcounter/tools/wooshovel
execute if score @s usedShears matches 1.. run function fz:scoreboards/digcounter/tools/shears
#重置探测使用工具的记分板的成就
advancement revoke @s only fz:scoreboards/digcounter/digtrigger
@@ -0,0 +1,2 @@
#将挖掘榜显示给轮播记分板的队伍(金队)
scoreboard objectives setdisplay sidebar.team.gold digCounter
@@ -0,0 +1,6 @@
#计算挖掘榜和总榜
#判断条件用于排除地毯小人
execute unless score @s carpetBot matches 1 run scoreboard players operation @s digCounter += @s usedDiaAxe
execute unless score @s carpetBot matches 1 run scoreboard players operation 总挖掘量 digCounter += @s usedDiaAxe
execute unless score @s carpetBot matches 1 run scoreboard players operation 总挖掘量 totalList += @s usedDiaAxe
scoreboard players reset @s usedDiaAxe
@@ -0,0 +1,6 @@
#计算挖掘榜和总榜
#判断条件用于排除地毯小人
execute unless score @s carpetBot matches 1 run scoreboard players operation @s digCounter += @s usedDiaHoe
execute unless score @s carpetBot matches 1 run scoreboard players operation 总挖掘量 digCounter += @s usedDiaHoe
execute unless score @s carpetBot matches 1 run scoreboard players operation 总挖掘量 totalList += @s usedDiaHoe
scoreboard players reset @s usedDiaHoe
@@ -0,0 +1,6 @@
#计算挖掘榜和总榜
#判断条件用于排除地毯小人
execute unless score @s carpetBot matches 1 run scoreboard players operation @s digCounter += @s usedDiaPickaxe
execute unless score @s carpetBot matches 1 run scoreboard players operation 总挖掘量 digCounter += @s usedDiaPickaxe
execute unless score @s carpetBot matches 1 run scoreboard players operation 总挖掘量 totalList += @s usedDiaPickaxe
scoreboard players reset @s usedDiaPickaxe
@@ -0,0 +1,6 @@
#计算挖掘榜和总榜
#判断条件用于排除地毯小人
execute unless score @s carpetBot matches 1 run scoreboard players operation @s digCounter += @s usedDiaShovel
execute unless score @s carpetBot matches 1 run scoreboard players operation 总挖掘量 digCounter += @s usedDiaShovel
execute unless score @s carpetBot matches 1 run scoreboard players operation 总挖掘量 totalList += @s usedDiaShovel
scoreboard players reset @s usedDiaShovel
@@ -0,0 +1,6 @@
#计算挖掘榜和总榜
#判断条件用于排除地毯小人
execute unless score @s carpetBot matches 1 run scoreboard players operation @s digCounter += @s usedGolAxe
execute unless score @s carpetBot matches 1 run scoreboard players operation 总挖掘量 digCounter += @s usedGolAxe
execute unless score @s carpetBot matches 1 run scoreboard players operation 总挖掘量 totalList += @s usedGolAxe
scoreboard players reset @s usedGolAxe
@@ -0,0 +1,6 @@
#计算挖掘榜和总榜
#判断条件用于排除地毯小人
execute unless score @s carpetBot matches 1 run scoreboard players operation @s digCounter += @s usedGolHoe
execute unless score @s carpetBot matches 1 run scoreboard players operation 总挖掘量 digCounter += @s usedGolHoe
execute unless score @s carpetBot matches 1 run scoreboard players operation 总挖掘量 totalList += @s usedGolHoe
scoreboard players reset @s usedGolHoe
@@ -0,0 +1,6 @@
#计算挖掘榜和总榜
#判断条件用于排除地毯小人
execute unless score @s carpetBot matches 1 run scoreboard players operation @s digCounter += @s usedGolPickaxe
execute unless score @s carpetBot matches 1 run scoreboard players operation 总挖掘量 digCounter += @s usedGolPickaxe
execute unless score @s carpetBot matches 1 run scoreboard players operation 总挖掘量 totalList += @s usedGolPickaxe
scoreboard players reset @s usedGolPickaxe
@@ -0,0 +1,6 @@
#计算挖掘榜和总榜
#判断条件用于排除地毯小人
execute unless score @s carpetBot matches 1 run scoreboard players operation @s digCounter += @s usedGolShovel
execute unless score @s carpetBot matches 1 run scoreboard players operation 总挖掘量 digCounter += @s usedGolShovel
execute unless score @s carpetBot matches 1 run scoreboard players operation 总挖掘量 totalList += @s usedGolShovel
scoreboard players reset @s usedGolShovel
@@ -0,0 +1,6 @@
#计算挖掘榜和总榜
#判断条件用于排除地毯小人
execute unless score @s carpetBot matches 1 run scoreboard players operation @s digCounter += @s usedIroAxe
execute unless score @s carpetBot matches 1 run scoreboard players operation 总挖掘量 digCounter += @s usedIroAxe
execute unless score @s carpetBot matches 1 run scoreboard players operation 总挖掘量 totalList += @s usedIroAxe
scoreboard players reset @s usedIroAxe
@@ -0,0 +1,6 @@
#计算挖掘榜和总榜
#判断条件用于排除地毯小人
execute unless score @s carpetBot matches 1 run scoreboard players operation @s digCounter += @s usedIroHoe
execute unless score @s carpetBot matches 1 run scoreboard players operation 总挖掘量 digCounter += @s usedIroHoe
execute unless score @s carpetBot matches 1 run scoreboard players operation 总挖掘量 totalList += @s usedIroHoe
scoreboard players reset @s usedIroHoe
@@ -0,0 +1,6 @@
#计算挖掘榜和总榜
#判断条件用于排除地毯小人
execute unless score @s carpetBot matches 1 run scoreboard players operation @s digCounter += @s usedIroPickaxe
execute unless score @s carpetBot matches 1 run scoreboard players operation 总挖掘量 digCounter += @s usedIroPickaxe
execute unless score @s carpetBot matches 1 run scoreboard players operation 总挖掘量 totalList += @s usedIroPickaxe
scoreboard players reset @s usedIroPickaxe
@@ -0,0 +1,6 @@
#计算挖掘榜和总榜
#判断条件用于排除地毯小人
execute unless score @s carpetBot matches 1 run scoreboard players operation @s digCounter += @s usedIroShovel
execute unless score @s carpetBot matches 1 run scoreboard players operation 总挖掘量 digCounter += @s usedIroShovel
execute unless score @s carpetBot matches 1 run scoreboard players operation 总挖掘量 totalList += @s usedIroShovel
scoreboard players reset @s usedIroShovel
@@ -0,0 +1,6 @@
#计算挖掘榜和总榜
#判断条件用于排除地毯小人
execute unless score @s carpetBot matches 1 run scoreboard players operation @s digCounter += @s usedNetAxe
execute unless score @s carpetBot matches 1 run scoreboard players operation 总挖掘量 digCounter += @s usedNetAxe
execute unless score @s carpetBot matches 1 run scoreboard players operation 总挖掘量 totalList += @s usedNetAxe
scoreboard players reset @s usedNetAxe
@@ -0,0 +1,6 @@
#计算挖掘榜和总榜
#判断条件用于排除地毯小人
execute unless score @s carpetBot matches 1 run scoreboard players operation @s digCounter += @s usedNetHoe
execute unless score @s carpetBot matches 1 run scoreboard players operation 总挖掘量 digCounter += @s usedNetHoe
execute unless score @s carpetBot matches 1 run scoreboard players operation 总挖掘量 totalList += @s usedNetHoe
scoreboard players reset @s usedNetHoe
@@ -0,0 +1,6 @@
#计算挖掘榜和总榜
#判断条件用于排除地毯小人
execute unless score @s carpetBot matches 1 run scoreboard players operation @s digCounter += @s usedNetPickaxe
execute unless score @s carpetBot matches 1 run scoreboard players operation 总挖掘量 digCounter += @s usedNetPickaxe
execute unless score @s carpetBot matches 1 run scoreboard players operation 总挖掘量 totalList += @s usedNetPickaxe
scoreboard players reset @s usedNetPickaxe
@@ -0,0 +1,6 @@
#计算挖掘榜和总榜
#判断条件用于排除地毯小人
execute unless score @s carpetBot matches 1 run scoreboard players operation @s digCounter += @s usedNetShovel
execute unless score @s carpetBot matches 1 run scoreboard players operation 总挖掘量 digCounter += @s usedNetShovel
execute unless score @s carpetBot matches 1 run scoreboard players operation 总挖掘量 totalList += @s usedNetShovel
scoreboard players reset @s usedNetShovel
@@ -0,0 +1,6 @@
#计算挖掘榜和总榜
#判断条件用于排除地毯小人
execute unless score @s carpetBot matches 1 run scoreboard players operation @s digCounter += @s usedShears
execute unless score @s carpetBot matches 1 run scoreboard players operation 总挖掘量 digCounter += @s usedShears
execute unless score @s carpetBot matches 1 run scoreboard players operation 总挖掘量 totalList += @s usedShears
scoreboard players reset @s usedShears
@@ -0,0 +1,6 @@
#计算挖掘榜和总榜
#判断条件用于排除地毯小人
execute unless score @s carpetBot matches 1 run scoreboard players operation @s digCounter += @s usedStoAxe
execute unless score @s carpetBot matches 1 run scoreboard players operation 总挖掘量 digCounter += @s usedStoAxe
execute unless score @s carpetBot matches 1 run scoreboard players operation 总挖掘量 totalList += @s usedStoAxe
scoreboard players reset @s usedStoAxe
@@ -0,0 +1,6 @@
#计算挖掘榜和总榜
#判断条件用于排除地毯小人
execute unless score @s carpetBot matches 1 run scoreboard players operation @s digCounter += @s usedStoHoe
execute unless score @s carpetBot matches 1 run scoreboard players operation 总挖掘量 digCounter += @s usedStoHoe
execute unless score @s carpetBot matches 1 run scoreboard players operation 总挖掘量 totalList += @s usedStoHoe
scoreboard players reset @s usedStoHoe
@@ -0,0 +1,6 @@
#计算挖掘榜和总榜
#判断条件用于排除地毯小人
execute unless score @s carpetBot matches 1 run scoreboard players operation @s digCounter += @s usedStoPickaxe
execute unless score @s carpetBot matches 1 run scoreboard players operation 总挖掘量 digCounter += @s usedStoPickaxe
execute unless score @s carpetBot matches 1 run scoreboard players operation 总挖掘量 totalList += @s usedStoPickaxe
scoreboard players reset @s usedStoPickaxe
@@ -0,0 +1,6 @@
#计算挖掘榜和总榜
#判断条件用于排除地毯小人
execute unless score @s carpetBot matches 1 run scoreboard players operation @s digCounter += @s usedStoShovel
execute unless score @s carpetBot matches 1 run scoreboard players operation 总挖掘量 digCounter += @s usedStoShovel
execute unless score @s carpetBot matches 1 run scoreboard players operation 总挖掘量 totalList += @s usedStoShovel
scoreboard players reset @s usedStoShovel
@@ -0,0 +1,6 @@
#计算挖掘榜和总榜
#判断条件用于排除地毯小人
execute unless score @s carpetBot matches 1 run scoreboard players operation @s digCounter += @s usedWooAxe
execute unless score @s carpetBot matches 1 run scoreboard players operation 总挖掘量 digCounter += @s usedWooAxe
execute unless score @s carpetBot matches 1 run scoreboard players operation 总挖掘量 totalList += @s usedWooAxe
scoreboard players reset @s usedWooAxe
@@ -0,0 +1,6 @@
#计算挖掘榜和总榜
#判断条件用于排除地毯小人
execute unless score @s carpetBot matches 1 run scoreboard players operation @s digCounter += @s usedWooHoe
execute unless score @s carpetBot matches 1 run scoreboard players operation 总挖掘量 digCounter += @s usedWooHoe
execute unless score @s carpetBot matches 1 run scoreboard players operation 总挖掘量 totalList += @s usedWooHoe
scoreboard players reset @s usedWooHoe
@@ -0,0 +1,6 @@
#计算挖掘榜和总榜
#判断条件用于排除地毯小人
execute unless score @s carpetBot matches 1 run scoreboard players operation @s digCounter += @s usedWooPickaxe
execute unless score @s carpetBot matches 1 run scoreboard players operation 总挖掘量 digCounter += @s usedWooPickaxe
execute unless score @s carpetBot matches 1 run scoreboard players operation 总挖掘量 totalList += @s usedWooPickaxe
scoreboard players reset @s usedWooPickaxe
@@ -0,0 +1,6 @@
#计算挖掘榜和总榜
#判断条件用于排除地毯小人
execute unless score @s carpetBot matches 1 run scoreboard players operation @s digCounter += @s usedWooShovel
execute unless score @s carpetBot matches 1 run scoreboard players operation 总挖掘量 digCounter += @s usedWooShovel
execute unless score @s carpetBot matches 1 run scoreboard players operation 总挖掘量 totalList += @s usedWooShovel
scoreboard players reset @s usedWooShovel
@@ -0,0 +1,7 @@
#为digtrigger函数修正非挖掘的使用带来的加分(对一些方块使用工具)
#判断条件用于排除地毯小人
execute unless score @s carpetBot matches 1 run scoreboard players remove @s digCounter 1
execute unless score @s carpetBot matches 1 run scoreboard players remove 总挖掘量 digCounter 1
execute unless score @s carpetBot matches 1 run scoreboard players remove 总挖掘量 totalList 1
advancement revoke @s only fz:scoreboards/digcounter/toolsfix
#铲子和锄头的方块判断居然只响应产物不响应原方块,更离谱的是斧头两者会同时相应
@@ -0,0 +1,6 @@
#为digtrigger函数修正非挖掘的使用带来的加分(使用工具攻击实体)
#判断条件用于排除地毯小人
execute unless score @s carpetBot matches 1 run scoreboard players remove @s digCounter 1
execute unless score @s carpetBot matches 1 run scoreboard players remove 总挖掘量 digCounter 1
execute unless score @s carpetBot matches 1 run scoreboard players remove 总挖掘量 totalList 1
advancement revoke @s only fz:scoreboards/digcounter/toolsfix2
@@ -0,0 +1,9 @@
#计算钓鱼数和总榜
#判断条件用于排除地毯小人
execute unless score @s carpetBot matches 1 run scoreboard players operation @s fishingCounter += @s fishingTester
execute unless score @s carpetBot matches 1 run scoreboard players operation 总钓鱼数 fishingCounter += @s fishingTester
execute unless score @s carpetBot matches 1 run scoreboard players operation 总钓鱼数 totalList += @s fishingTester
#重置钓鱼探测记分板
scoreboard players reset @s fishingTester
#重置出发该函数的成就
advancement revoke @s only fz:scoreboards/fishingcounter
@@ -0,0 +1 @@
scoreboard objectives setdisplay sidebar.team.gold fishingCounter
@@ -0,0 +1,114 @@
scoreboard objectives add carpetBot dummy
#在线时间计数器记分板,用于activation/main函数
scoreboard objectives add actimeCounter dummy
scoreboard objectives add killCounter dummy
scoreboard objectives add digCounter dummy
scoreboard objectives add usedDiaAxe minecraft.used:minecraft.diamond_axe
scoreboard objectives add usedDiaPickaxe minecraft.used:minecraft.diamond_pickaxe
scoreboard objectives add usedDiaShovel minecraft.used:minecraft.diamond_shovel
scoreboard objectives add usedDiaHoe minecraft.used:minecraft.diamond_hoe
scoreboard objectives add usedIroAxe minecraft.used:minecraft.iron_axe
scoreboard objectives add usedIroPickaxe minecraft.used:minecraft.iron_pickaxe
scoreboard objectives add usedIroShovel minecraft.used:minecraft.iron_shovel
scoreboard objectives add usedIroHoe minecraft.used:minecraft.iron_hoe
scoreboard objectives add usedStoAxe minecraft.used:minecraft.stone_axe
scoreboard objectives add usedStoPickaxe minecraft.used:minecraft.stone_pickaxe
scoreboard objectives add usedStoShovel minecraft.used:minecraft.stone_shovel
scoreboard objectives add usedStoHoe minecraft.used:minecraft.stone_hoe
scoreboard objectives add usedWooAxe minecraft.used:minecraft.wooden_axe
scoreboard objectives add usedWooPickaxe minecraft.used:minecraft.wooden_pickaxe
scoreboard objectives add usedWooShovel minecraft.used:minecraft.wooden_shovel
scoreboard objectives add usedWooHoe minecraft.used:minecraft.wooden_hoe
scoreboard objectives add usedGolAxe minecraft.used:minecraft.golden_axe
scoreboard objectives add usedGolPickaxe minecraft.used:minecraft.golden_pickaxe
scoreboard objectives add usedGolShovel minecraft.used:minecraft.golden_shovel
scoreboard objectives add usedGolHoe minecraft.used:minecraft.golden_hoe
scoreboard objectives add usedNetAxe minecraft.used:minecraft.netherite_axe
scoreboard objectives add usedNetPickaxe minecraft.used:minecraft.netherite_pickaxe
scoreboard objectives add usedNetShovel minecraft.used:minecraft.netherite_shovel
scoreboard objectives add usedNetHoe minecraft.used:minecraft.netherite_hoe
scoreboard objectives add usedShears minecraft.used:minecraft.shears
scoreboard objectives add deathCounter dummy
scoreboard objectives add deathTester deathCount
scoreboard objectives add tradingCounter dummy
scoreboard objectives add fishingCounter dummy
scoreboard objectives add fishingTester minecraft.custom:fish_caught
scoreboard objectives add damageTaken dummy
scoreboard objectives add 10xDamageTaken minecraft.custom:damage_taken
scoreboard objectives add activation dummy
scoreboard objectives add totalList dummy
scoreboard objectives add bedrockBreaked dummy
scoreboard objectives add fz.bbl dummy
scoreboard objectives modify activation displayname {"text": "活跃时间(h)","color": "aqua"}
scoreboard objectives modify damageTaken displayname {"text": "抖M名单","color": "yellow"}
scoreboard objectives modify deathCounter displayname {"text": "死亡榜","color": "dark_red"}
scoreboard objectives modify digCounter displayname {"text": "挖掘榜","color": "gray"}
scoreboard objectives modify fishingCounter displayname {"text": "钩直饵咸","color": "blue"}
scoreboard objectives modify killCounter displayname {"text": "击杀榜","color": "red"}
scoreboard objectives modify tradingCounter displayname {"text": "交♂易榜","color": "green"}
scoreboard objectives modify totalList displayname {"text": "总 量","color": "dark_aqua"}
scoreboard objectives modify bedrockBreaked displayname {"text": "铁头功","color": "dark_green"}
team add gold
team add aqua
team add yellow
team add dark_red
team add gray
team add blue
team add red
team add green
team add dark_aqua
team add dark_green
team modify gold color gold
team modify aqua color aqua
team modify yellow color yellow
team modify dark_red color dark_red
team modify gray color gray
team modify blue color blue
team modify red color red
team modify dark_aqua color dark_aqua
team modify green color green
team modify dark_green color dark_green
team join aqua 总在线时间(h)
team join yellow 群p抖M
team join dark_red 全部木大
team join gray 总挖掘量
team join blue 总钓鱼数
team join red 总击杀数
team join green 总交♂易数
team join dark_green 全员头铁
#各计分板的总量
scoreboard players operation 总在线时间(h) activation = 总在线时间(h) activation
scoreboard players operation 群p抖M damageTaken = 群p抖M damageTaken
scoreboard players operation 全部木大 deathCounter = 全部木大 deathCounter
scoreboard players operation 总挖掘量 digCounter = 总挖掘量 digCounter
scoreboard players operation 总钓鱼数 fishingCounter = 总钓鱼数 fishingCounter
scoreboard players operation 总击杀数 killCounter = 总击杀数 killCounter
scoreboard players operation 总交♂易数 tradingCounter = 总交♂易数 tradingCounter
#总榜的总量
scoreboard players operation 总在线时间(h) totalList = 总在线时间(h) totalList
scoreboard players operation 群p抖M totalList = 群p抖M totalList
scoreboard players operation 全部木大 totalList = 全部木大 totalList
scoreboard players operation 总挖掘量 totalList = 总挖掘量 totalList
scoreboard players operation 总钓鱼数 totalList = 总钓鱼数 totalList
scoreboard players operation 总击杀数 totalList = 总击杀数 totalList
scoreboard players operation 总交♂易数 totalList = 总交♂易数 totalList
scoreboard objectives setdisplay sidebar.team.aqua activation
scoreboard objectives setdisplay sidebar.team.yellow damageTaken
scoreboard objectives setdisplay sidebar.team.dark_red deathCounter
scoreboard objectives setdisplay sidebar.team.gray digCounter
scoreboard objectives setdisplay sidebar.team.blue fishingCounter
scoreboard objectives setdisplay sidebar.team.red killCounter
scoreboard objectives setdisplay sidebar.team.dark_aqua totalList
scoreboard objectives setdisplay sidebar.team.green tradingCounter
scoreboard objectives setdisplay sidebar.team.dark_green bedrockBreaked
data merge storage fz.installed {scoreboards:1b}
#提示已安装
tellraw @a {"text": "[信息]记分板已安装","color": "#5fff00"}
function fz:scoreboards/start
@@ -0,0 +1,6 @@
#计算击杀榜和总榜
scoreboard players add @s killCounter 1
scoreboard players add 总击杀数 killCounter 1
scoreboard players add 总击杀数 totalList 1
#重置触发该函数的成就,地毯小人已在成就里排除
advancement revoke @s only fz:scoreboards/killcounter
@@ -0,0 +1,2 @@
#将击杀榜显示给轮播记分板的队伍(金队)
scoreboard objectives setdisplay sidebar.team.gold killCounter
@@ -0,0 +1,10 @@
function fz:scoreboards/killcounter/killcounter
schedule function fz:scoreboards/deathcounter/setdisplay 10s replace
schedule function fz:scoreboards/digcounter/setdisplay 20s replace
schedule function fz:scoreboards/tradingcounter/setdisplay 30s replace
schedule function fz:scoreboards/fishingcounter/setdisplay 40s replace
schedule function fz:scoreboards/damagetaken/setdisplay 50s replace
schedule function fz:scoreboards/activation/setdisplay 60s replace
schedule function fz:scoreboards/totallist 70s replace
schedule function fz:scoreboards/bedrockbreaked/setdisplay 80s replace
schedule function fz:scoreboards/main 90s replace
@@ -0,0 +1,13 @@
function fz:scoreboards/main
function fz:scoreboards/activation/main
advancement revoke @a only fz:scoreboards/activation
advancement revoke @a only fz:scoreboards/damagetaken
advancement revoke @a only fz:scoreboards/deathcounter
advancement revoke @a only fz:scoreboards/fishingcounter
advancement revoke @a only fz:scoreboards/killcounter
advancement revoke @a only fz:scoreboards/tradingcounter
advancement revoke @a only fz:scoreboards/digcounter/digtrigger
advancement revoke @a only fz:scoreboards/digcounter/toolsfix
tellraw @a {"text": "[信息]记分板已启用","color": "#5fff00"}
@@ -0,0 +1 @@
scoreboard objectives setdisplay sidebar.team.gold totalList
@@ -0,0 +1,6 @@
#计算交易榜和总榜
scoreboard players add @s tradingCounter 1
scoreboard players add 总交♂易数 tradingCounter 1
scoreboard players add 总交♂易数 totalList 1
#重置触发该函数的成就,地毯小人已在成就里排除
advancement revoke @s only fz:scoreboards/tradingcounter
@@ -0,0 +1,2 @@
#将交易榜显示给轮播记分板的队伍(金队)
scoreboard objectives setdisplay sidebar.team.gold tradingCounter
@@ -0,0 +1,58 @@
schedule clear fz:scoreboards/totallist
schedule clear fz:scoreboards/activation/activation
schedule clear fz:scoreboards/damagetaken/damagetaken
schedule clear fz:scoreboards/deathcounter/deathcounter
schedule clear fz:scoreboards/digcounter/digcounter
schedule clear fz:scoreboards/fishingcounter/fishingcounter
schedule clear fz:scoreboards/killcounter/killcounter
schedule clear fz:scoreboards/tradingcounter/tradingcounter
schedule clear fz:scoreboards/main
scoreboard objectives remove carpetBot
scoreboard objectives remove actimeCounter
scoreboard objectives remove usedDiaAxe
scoreboard objectives remove usedDiaPickaxe
scoreboard objectives remove usedDiaShovel
scoreboard objectives remove usedDiaHoe
scoreboard objectives remove usedIroAxe
scoreboard objectives remove usedIroPickaxe
scoreboard objectives remove usedIroShovel
scoreboard objectives remove usedIroHoe
scoreboard objectives remove usedStoAxe
scoreboard objectives remove usedStoPickaxe
scoreboard objectives remove usedStoShovel
scoreboard objectives remove usedStoHoe
scoreboard objectives remove usedWooAxe
scoreboard objectives remove usedWooPickaxe
scoreboard objectives remove usedWooShovel
scoreboard objectives remove usedWooHoe
scoreboard objectives remove usedGolAxe
scoreboard objectives remove usedGolPickaxe
scoreboard objectives remove usedGolShovel
scoreboard objectives remove usedGolHoe
scoreboard objectives remove usedNetAxe
scoreboard objectives remove usedNetPickaxe
scoreboard objectives remove usedNetShovel
scoreboard objectives remove usedNetHoe
scoreboard objectives remove fz.bbl
scoreboard objectives remove deathTester
scoreboard objectives remove fishingTester
scoreboard objectives remove 10xDamageTaken
scoreboard objectives setdisplay sidebar.team.aqua
scoreboard objectives setdisplay sidebar.team.yellow
scoreboard objectives setdisplay sidebar.team.dark_red
scoreboard objectives setdisplay sidebar.team.gray
scoreboard objectives setdisplay sidebar.team.blue
scoreboard objectives setdisplay sidebar.team.red
scoreboard objectives setdisplay sidebar.team.light_purple
scoreboard objectives setdisplay sidebar.team.green
scoreboard objectives setdisplay sidebar.team.gold
#提示已卸载
tellraw @a {"text": "[信息]记分板已卸载","color": "#5fff00"}
tellraw @s [{"text": "[警告]您要删除计分板数据吗,它将会永久失去!(真的很久!)", "color": "#ffd900"},{"text": "[确定]","clickEvent": {"action": "run_command", "value": "/function fz:scoreboards/delscore"}, "color": "#00ff00"}]
data merge storage fz.installed {scoreboards:0b}