This commit is contained in:
延皓
2021-07-03 06:21:34 +08:00
parent 5e41b7d950
commit b2843145af
52 changed files with 1523 additions and 1844 deletions
@@ -1,2 +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
@@ -1,4 +1,4 @@
#应用计分板显示1838019370-1838019379
#应用计分板显示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
@@ -9,6 +9,7 @@ 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
@@ -1,2 +1,2 @@
#将抖M榜显示给轮播记分板的队伍
#将抖M榜显示给轮播记分板的队伍
scoreboard objectives setdisplay sidebar.team.gold damageTaken
@@ -1,2 +1,2 @@
#将死亡榜显示给轮播计分板的队伍
#将死亡榜显示给轮播计分板的队伍
scoreboard objectives setdisplay sidebar.team.gold deathCounter
@@ -7,5 +7,6 @@ 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"}
@@ -6,10 +6,12 @@ execute if score @s usedDiaPickaxe matches 1.. run function fz:scoreboards/digco
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
@@ -1,2 +1,2 @@
#将挖掘榜显示给轮播记分板的队伍
#将挖掘榜显示给轮播记分板的队伍
scoreboard objectives setdisplay sidebar.team.gold digCounter
@@ -2,5 +2,5 @@
#判断条件用于排除地毯小人
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 digCounter += @s usedGolAxe
execute unless score @s carpetBot matches 1 run scoreboard players operation totalList += @s usedGolAxe
scoreboard players reset @s usedGolAxe
@@ -1,7 +1,7 @@
#为digtrigger函数修正非挖掘的使用带来的加分
#为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
advancement revoke @s only fz:scoreboards/digcounter/toolsfix
#铲子和锄头的方块判断居然只响应产物不响应原方块
@@ -1,3 +1,4 @@
scoreboard objectives add carpetBot dummy
#在线时间计数器记分板activation/main
scoreboard objectives add actimeCounter dummy
@@ -8,9 +9,9 @@ scoreboard objectives add digCounter dummy
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_axe
scoreboard objectives add usedIroShovel minecraft.used:minecraft.iron_axe
scoreboard objectives add usedIroHoe 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
@@ -37,6 +38,8 @@ 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"}
@@ -46,6 +49,7 @@ scoreboard objectives modify fishingCounter displayname {"text": "钩直饵咸",
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
@@ -54,8 +58,9 @@ team add dark_red
team add gray
team add blue
team add red
team add dark_aqua
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
@@ -65,6 +70,7 @@ 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
@@ -73,7 +79,8 @@ 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
@@ -81,6 +88,7 @@ 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
@@ -97,6 +105,7 @@ 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}
@@ -1,2 +1,2 @@
#将击杀榜显示给轮播记分板的队伍
#将击杀榜显示给轮播记分板的队伍
scoreboard objectives setdisplay sidebar.team.gold killCounter
@@ -1,9 +1,10 @@
function fz:scoreboards/killcounter/killcounter
schedule function fz:scoreboards/deathcounter/deathcounter 10s replace
schedule function fz:scoreboards/digcounter/digcounter 20s replace
schedule function fz:scoreboards/tradingcounter/tradingcounter 30s replace
schedule function fz:scoreboards/fishingcounter/fishingcounter 40s replace
schedule function fz:scoreboards/damagetaken/damagetaken 50s replace
schedule function fz:scoreboards/activation/activation 60s replace
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/main 80s replace
schedule function fz:scoreboards/bedrockbreaked/setdisplay 80s replace
schedule function fz:scoreboards/main 90s replace
@@ -3,4 +3,4 @@ scoreboard players add @s tradingCounter 1
scoreboard players add tradingCounter 1
scoreboard players add totalList 1
#重置触发该函数的成就
advancement revoke @s only fz:tradingcounter
advancement revoke @s only fz:scoreboards/tradingcounter
@@ -1,2 +1,2 @@
#将交易榜显示给轮播记分板的队伍
#将交易榜显示给轮播记分板的队伍
scoreboard objectives setdisplay sidebar.team.gold tradingCounter
@@ -8,6 +8,7 @@ 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
@@ -34,6 +35,7 @@ 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