2.1.0
This commit is contained in:
+1
-1
@@ -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
-1
@@ -1,2 +1,2 @@
|
||||
#将抖M榜显示给轮播记分板的队伍(金队)
|
||||
#将抖M榜显示给轮播记分板的队伍(金队)
|
||||
scoreboard objectives setdisplay sidebar.team.gold damageTaken
|
||||
+1
-1
@@ -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
-1
@@ -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
-1
@@ -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
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user